diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2011-06-16 14:06:55 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-07-15 09:32:35 +0100 |
commit | 9964afbb797329e4c6e5d05ebc199c39af618c5f (patch) | |
tree | c0877e423f5dff8b722869bd3f21622a88889220 /fs/gfs2/ops_fstype.c | |
parent | 7cf8dcd3b68a760d66fbc7f0d75d3fbb8f21775d (diff) | |
download | op-kernel-dev-9964afbb797329e4c6e5d05ebc199c39af618c5f.zip op-kernel-dev-9964afbb797329e4c6e5d05ebc199c39af618c5f.tar.gz |
GFS2: Add S_NOSEC support
This adds S_NOSEC support to GFS2. We set/reset the flag either when
a user calls setattr or when we have just regained the glock
from another node. The flag is only set if there are no xattrs
on the inode and there is no suid bit set.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Diffstat (limited to 'fs/gfs2/ops_fstype.c')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 2a77071..516516e 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c @@ -1094,6 +1094,7 @@ static int fill_super(struct super_block *sb, struct gfs2_args *args, int silent if (sdp->sd_args.ar_nobarrier) set_bit(SDF_NOBARRIERS, &sdp->sd_flags); + sb->s_flags |= MS_NOSEC; sb->s_magic = GFS2_MAGIC; sb->s_op = &gfs2_super_ops; sb->s_d_op = &gfs2_dops; |