NTFS_MAPPING_PAIRS_DECOMPRESS

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

 

NAME

ntfs_mapping_pairs_decompress - convert mapping pairs array to runlist  

SYNOPSIS

"SYNOPSIS"

runlist_element * ntfs_mapping_pairs_decompress (const ntfs_volume * vol, const ATTR_RECORD * attr, runlist_element * old_rl);  

ARGUMENTS

vol
ntfs volume on which the attribute resides
attr
attribute record whose mapping pairs array to decompress
old_rl
optional runlist in which to insert attr's runlist
 

DESCRIPTION

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

Decompress the attribute attr's mapping pairs array into a runlist. On success, return the decompressed runlist.

If old_rl is not NULL, decompressed runlist is inserted into the appropriate place in old_rl and the resultant, combined runlist is returned. The original old_rl is deallocated.

On error, return -errno. old_rl is left unmodified in that case.  

THE FOLLOWING ERROR CODES ARE DEFINED

-ENOMEM - Not enough memory to allocate runlist array. -EIO - Corrupt runlist. -EINVAL - Invalid parameters were passed in. -ERANGE - The two runlists overlap.  

FIXME

For now we take the conceptionally simplest approach of creating the new runlist disregarding the already existing one and then splicing the two into one, if that is possible (we check for overlap and discard the new runlist if overlap present before returning ERR_PTR(-ERANGE)).


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
THE FOLLOWING ERROR CODES ARE DEFINED
FIXME

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