.\" 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_ATTR_RECORD_RESIZE" "9" "09 October 2005" "" "" .SH NAME ntfs_attr_record_resize \- resize an attribute record .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ntfs_attr_record_resize (MFT_RECORD * \fIm\fB, ATTR_RECORD * \fIa\fB, u32 \fInew_size\fB); \fR .SH "ARGUMENTS" .TP \fB\fIm\fB\fR mft record containing attribute record .TP \fB\fIa\fB\fR attribute record to resize .TP \fB\fInew_size\fB\fR new size in bytes to which to resize the attribute record \fIa\fR .SH "DESCRIPTION" .PP Resize the attribute record \fIa\fR, i.e. the resident part of the attribute, in the mft record \fIm\fR to \fInew_size\fR bytes. .PP Return 0 on success and -errno on error. The following error codes are .SH "DEFINED" .PP -ENOSPC - Not enough space in the mft record \fIm\fR to perform the resize. .SH "NOTE" .PP On error, no modifications have been performed whatsoever. .SH "WARNING" .PP If you make a record smaller without having copied all the data you are interested in the data may be overwritten.