NTFS_SETATTR

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

 

NAME

ntfs_setattr - called from notify_change when an attribute is being changed  

SYNOPSIS

"SYNOPSIS"

int ntfs_setattr (struct dentry * dentry, struct iattr * attr);  

ARGUMENTS

dentry
dentry whose attributes to change
attr
structure describing the attributes and the changes
 

DESCRIPTION

We have to trap VFS attempts to truncate the file described by dentry as soon as possible, because we do not implement changes in i_size yet. So we abort all i_size changes here.

We also abort all changes of user, group, and mode as we do not implement the NTFS ACLs yet.

Called with ->i_sem held. For the ATTR_SIZE (i.e. ->truncate) case, also called with ->i_alloc_sem held for writing.

Basically this is a copy of generic notify_change and inode_setattr functionality, except we intercept and abort changes in i_size.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

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