.\" 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_SETATTR" "9" "09 October 2005" "" ""
.SH NAME
ntfs_setattr \- called from notify_change when an attribute is being changed
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_setattr (struct dentry * \fIdentry\fB, struct iattr * \fIattr\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdentry\fB\fR
dentry whose attributes to change
.TP
\fB\fIattr\fB\fR
structure describing the attributes and the changes
.SH "DESCRIPTION"
.PP
We have to trap VFS attempts to truncate the file described by \fIdentry\fR as
soon as possible, because we do not implement changes in i_size yet. So we
abort all i_size changes here.
.PP
We also abort all changes of user, group, and mode as we do not implement
the NTFS ACLs yet.
.PP
Called with ->i_sem held. For the ATTR_SIZE (i.e. ->truncate) case, also
called with ->i_alloc_sem held for writing.
.PP
Basically this is a copy of generic \fBnotify_change\fR and \fBinode_setattr\fR
functionality, except we intercept and abort changes in i_size.