There's another way to deal with this in NFS and fuse, without having to change the API: - remove suid/sgid bits from i_mode, when refreshing the inode attributes - store the removed bits (or the original mode) in the fs' inode strucure - in ->getattr() restore the original mode into the returned stat This way the VFS believes, that the inode does not in fact have the suid/sgid bits and so won't call ->setattr() unnecessarily. I've tested a similar change in fuse for working around unneeded check for the directory sticky bit. Yes, this is cheating the interface, but there's a deeper level where it makes sense: the VFS should not be checking _any_ inode attribute besides the file type, since they can change at any moment, and the VFS might be using stale data without having first properly revalidated it. Miklos - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- From: Jeff Layton <[email protected]>
- Re: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- From: Miklos Szeredi <[email protected]>
- Re: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- From: Jeff Layton <[email protected]>
- Re: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- From: Miklos Szeredi <[email protected]>
- Re: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- From: Trond Myklebust <[email protected]>
- Re: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- From: Miklos Szeredi <[email protected]>
- Re: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- From: Trond Myklebust <[email protected]>
- Re: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- From: Miklos Szeredi <[email protected]>
- [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- Prev by Date: Re: 2.6.20->2.6.21 - networking dies after random time
- Next by Date: Re: Linux Kernel cfs scheduler and xorg kbd
- Previous by thread: Re: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- Next by thread: Re: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
- Index(es):