Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Sterba and committed by
Chris Mason
0942caa3 2f7e33d4

+11
+5
fs/btrfs/ctree.h
··· 1336 1336 */ 1337 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 1344 #define BTRFS_MOUNT_NODATASUM (1 << 0) 1340 1345 #define BTRFS_MOUNT_NODATACOW (1 << 1) 1341 1346 #define BTRFS_MOUNT_NOBARRIER (1 << 2)
+6
fs/btrfs/super.c
··· 721 721 seq_puts(seq, ",clear_cache"); 722 722 if (btrfs_test_opt(root, USER_SUBVOL_RM_ALLOWED)) 723 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 730 return 0; 725 731 } 726 732