NTFS_RL_TRUNCATE_NOLOCK

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

 

NAME

ntfs_rl_truncate_nolock - truncate a runlist starting at a specified vcn  

SYNOPSIS

"SYNOPSIS"

int ntfs_rl_truncate_nolock (const ntfs_volume * vol, runlist *const runlist, const s64 new_length);  

ARGUMENTS

vol
-- undescribed --
runlist
runlist to truncate
new_length
the new length of the runlist in VCNs
 

DESCRIPTION

Truncate the runlist described by runlist as well as the memory buffer holding the runlist elements to a length of new_length VCNs.

If new_length lies within the runlist, the runlist elements with VCNs of new_length and above are discarded.

If new_length lies beyond the runlist, a sparse runlist element is added to the end of the runlist runlist or if the last runlist element is a sparse one already, this is extended.

Return 0 on success and -errno on error.  

LOCKING

The caller must hold runlist->lock for writing.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
LOCKING

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