[ 3.8.y.z extended stable ] Patch "fuse: invalidate inode attributes on xattr modification" has been added to staging queue
Kamal Mostafa
kamal at canonical.com
Fri Sep 20 00:36:22 UTC 2013
This is a note to let you know that I have just added a patch titled
fuse: invalidate inode attributes on xattr modification
to the linux-3.8.y-queue branch of the 3.8.y.z extended stable tree
which can be found at:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.8.y-queue
This patch is scheduled to be released in version 3.8.13.10.
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.8.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Kamal
------
>From 2eb6e632fcb92cf356709c1ce5de651a12162a92 Mon Sep 17 00:00:00 2001
From: Anand Avati <avati at redhat.com>
Date: Tue, 20 Aug 2013 02:21:07 -0400
Subject: fuse: invalidate inode attributes on xattr modification
commit d331a415aef98717393dda0be69b7947da08eba3 upstream.
Calls like setxattr and removexattr result in updation of ctime.
Therefore invalidate inode attributes to force a refresh.
Signed-off-by: Anand Avati <avati at redhat.com>
Reviewed-by: Brian Foster <bfoster at redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi at suse.cz>
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
fs/fuse/dir.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 315e1f8..54a24fc 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -1548,6 +1548,8 @@ static int fuse_setxattr(struct dentry *entry, const char *name,
fc->no_setxattr = 1;
err = -EOPNOTSUPP;
}
+ if (!err)
+ fuse_invalidate_attr(inode);
return err;
}
@@ -1677,6 +1679,8 @@ static int fuse_removexattr(struct dentry *entry, const char *name)
fc->no_removexattr = 1;
err = -EOPNOTSUPP;
}
+ if (!err)
+ fuse_invalidate_attr(inode);
return err;
}
--
1.8.1.2
More information about the kernel-team
mailing list