diff options
author | David Sterba <dsterba@suse.cz> | 2011-06-28 11:10:37 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-07-06 18:46:43 -0400 |
commit | 0942caa373c676dca614ea8352ac77e0270aba73 (patch) | |
tree | 0a6a1bdceeb030566fcba6a6bfa322eb79f2d8d9 | |
parent | 2f7e33d432d097a2a7f467b031bf18be91cb3d49 (diff) |
btrfs: add missing options displayed in mount output
There are three missed mount options settable by user which are not
currently displayed in mount output.
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r-- | fs/btrfs/ctree.h | 5 | ||||
-rw-r--r-- | fs/btrfs/super.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 8e948ec1ee6b..60e13ef23a5e 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1336,6 +1336,11 @@ struct btrfs_ioctl_defrag_range_args { | |||
1336 | */ | 1336 | */ |
1337 | #define BTRFS_STRING_ITEM_KEY 253 | 1337 | #define BTRFS_STRING_ITEM_KEY 253 |
1338 | 1338 | ||
1339 | /* | ||
1340 | * Flags for mount options. | ||
1341 | * | ||
1342 | * Note: don't forget to add new options to btrfs_show_options() | ||
1343 | */ | ||
1339 | #define BTRFS_MOUNT_NODATASUM (1 << 0) | 1344 | #define BTRFS_MOUNT_NODATASUM (1 << 0) |
1340 | #define BTRFS_MOUNT_NODATACOW (1 << 1) | 1345 | #define BTRFS_MOUNT_NODATACOW (1 << 1) |
1341 | #define BTRFS_MOUNT_NOBARRIER (1 << 2) | 1346 | #define BTRFS_MOUNT_NOBARRIER (1 << 2) |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 3559d0b3518a..5746081199ee 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -721,6 +721,12 @@ static int btrfs_show_options(struct seq_file *seq, struct vfsmount *vfs) | |||
721 | seq_puts(seq, ",clear_cache"); | 721 | seq_puts(seq, ",clear_cache"); |
722 | if (btrfs_test_opt(root, USER_SUBVOL_RM_ALLOWED)) | 722 | if (btrfs_test_opt(root, USER_SUBVOL_RM_ALLOWED)) |
723 | seq_puts(seq, ",user_subvol_rm_allowed"); | 723 | seq_puts(seq, ",user_subvol_rm_allowed"); |
724 | if (btrfs_test_opt(root, ENOSPC_DEBUG)) | ||
725 | seq_puts(seq, ",enospc_debug"); | ||
726 | if (btrfs_test_opt(root, AUTO_DEFRAG)) | ||
727 | seq_puts(seq, ",autodefrag"); | ||
728 | if (btrfs_test_opt(root, INODE_MAP_CACHE)) | ||
729 | seq_puts(seq, ",inode_cache"); | ||
724 | return 0; | 730 | return 0; |
725 | } | 731 | } |
726 | 732 | ||