NTFS_RL_VCN_TO_LCN

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

ntfs_rl_vcn_to_lcn - convert a vcn into a lcn given a runlist  

SYNOPSIS

"SYNOPSIS"

LCN ntfs_rl_vcn_to_lcn (const runlist_element * rl, const VCN vcn);  

ARGUMENTS

rl
runlist to use for conversion
vcn
vcn to convert
 

DESCRIPTION

Convert the virtual cluster number vcn of an attribute into a logical cluster number (lcn) of a device using the runlist rl to map vcns to their corresponding lcns.

It is up to the caller to serialize access to the runlist rl.

Since lcns must be >= 0, we use negative return codes with special meaning:

Return code Meaning / Description ================================================== LCN_HOLE Hole / not allocated on disk. LCN_RL_NOT_MAPPED This is part of the runlist which has not been inserted into the runlist yet. LCN_ENOENT There is no such vcn in the attribute.  

LOCKING

- The caller must have locked the runlist (for reading or writing). - This function does not touch the lock, nor does it modify the runlist.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
LOCKING

This document was created by man2html, using the manual pages.
Time: 00:02:34 GMT, October 09, 2005