diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2015-03-25 21:10:09 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-04-20 18:55:39 +0300 |
commit | ff7eeb82cc16f25203b69f817cbbb85845c817fe (patch) | |
tree | 9e3ede5230967bd2c520c3d093ff093b1e4d21e7 /fs/ceph | |
parent | 5cf7bd30120ead3db43ef9074be38018d9acf22f (diff) | |
download | linux-ff7eeb82cc16f25203b69f817cbbb85845c817fe.tar.bz2 |
ceph: show non-default options only
Don't pollute /proc/mounts with default options (presently these are
dcache, nofsc and acl). Leave the acl/noacl however - it's a bit of
a special case due to CONFIG_CEPH_FS_POSIX_ACL.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/super.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 34a779edd421..e463ebd69a9c 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -432,14 +432,10 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root) seq_puts(m, ",norbytes"); if (fsopt->flags & CEPH_MOUNT_OPT_NOASYNCREADDIR) seq_puts(m, ",noasyncreaddir"); - if (fsopt->flags & CEPH_MOUNT_OPT_DCACHE) - seq_puts(m, ",dcache"); - else + if ((fsopt->flags & CEPH_MOUNT_OPT_DCACHE) == 0) seq_puts(m, ",nodcache"); if (fsopt->flags & CEPH_MOUNT_OPT_FSCACHE) seq_puts(m, ",fsc"); - else - seq_puts(m, ",nofsc"); #ifdef CONFIG_CEPH_FS_POSIX_ACL if (fsopt->sb_flags & MS_POSIXACL) |