fsnotify on removexattr
I got wondering, why does fs_notify_xattr get called from setxattr in fs/xattr.c, but not from removexattr that is below it in the same file? Both seem to make changes to xattrs and both are exported as system calls.
Bye,
Marijn
Signature · 3 lines
___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm
PATCH 1/1 fsnotify: hook on removexattr, too
Quoted 3 lines · marijn ros
I got wondering, why does
fs_notify_xattrget called from setxattr infs/xattr.c, but not from removexattr that is below it in the same file? Both seem to make changes to xattrs and both are exported as system calls.
We should.
Robert Love
Add fsnotify_xattr() hook to removexattr().
fs/xattr.c | 2 ++ 1 files changed, 2 insertions(+)
fs/xattr.c +2 -0
@@ -307,6 +307,8 @@down (&d->d_inode->i_sem); error = d->d_inode->i_op->removexattr (d, kname);up (&d->d_inode->i_sem); +if (!error) +fsnotify_xattr (d); } out:return error;
Re: [patch] fsnotify: hook on removexattr, too
Quoted 8 lines · Robert Love
Quoted 3 lines · marijn ros
I got wondering, why does
fs_notify_xattrget called from setxattr infs/xattr.c, but not from removexattr that is below it in the same file? Both seem to make changes to xattrs and both are exported as system calls.We should.
Yes we should.
Signature · 1 line
John McCutchan <[email protected]>