.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "NTFS_RL_TRUNCATE_NOLOCK" "9" "09 October 2005" "" ""
.SH NAME
ntfs_rl_truncate_nolock \- truncate a runlist starting at a specified vcn
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_rl_truncate_nolock (const ntfs_volume * \fIvol\fB, runlist *const \fIrunlist\fB, const s64 \fInew_length\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIvol\fB\fR
-- undescribed --
.TP
\fB\fIrunlist\fB\fR
runlist to truncate
.TP
\fB\fInew_length\fB\fR
the new length of the runlist in VCNs
.SH "DESCRIPTION"
.PP
Truncate the runlist described by \fIrunlist\fR as well as the memory buffer
holding the runlist elements to a length of \fInew_length\fR VCNs.
.PP
If \fInew_length\fR lies within the runlist, the runlist elements with VCNs of
\fInew_length\fR and above are discarded.
.PP
If \fInew_length\fR lies beyond the runlist, a sparse runlist element is added to
the end of the runlist \fIrunlist\fR or if the last runlist element is a sparse
one already, this is extended.
.PP
Return 0 on success and -errno on error.
.SH "LOCKING"
.PP
The caller must hold \fIrunlist\fR->lock for writing.