.\" 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_MFT_RECORD_LAYOUT" "9" "09 October 2005" "" ""
.SH NAME
ntfs_mft_record_layout \- layout an mft record into a memory buffer
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_mft_record_layout (const ntfs_volume * \fIvol\fB, const s64 \fImft_no\fB, MFT_RECORD * \fIm\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIvol\fB\fR
volume to which the mft record will belong
.TP
\fB\fImft_no\fB\fR
mft reference specifying the mft record number
.TP
\fB\fIm\fB\fR
destination buffer of size >= \fIvol\fR->mft_record_size bytes
.SH "DESCRIPTION"
.PP
Layout an empty, unused mft record with the mft record number \fImft_no\fR into
the buffer \fIm\fR\&. The volume \fIvol\fR is needed because the mft record structure
was modified in NTFS 3.1 so we need to know which volume version this mft
record will be used on.
.PP
Return 0 on success and -errno on error.