btrfs: check if mount opts are applied
authorMarcos Paulo de Souza <mpdesouza@suse.com>
Mon, 7 Sep 2020 18:39:12 +0000 (15:39 -0300)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Sep 2020 15:10:09 +0000 (23:10 +0800)
commit85de6a5e5395198c1f20f3e4e4373087fe4fb92a
tree41a2ee978808ace3f01bc7dd68f44bf6b8bdf68c
parent43fbe02d8741d50db2b135a389760abe8c93ec99
btrfs: check if mount opts are applied

This new test will apply different mount points and check if they
were applied by reading /proc/self/mounts. Almost all available
btrfs options are tested here, leaving only device=, which is tested
in btrfs/125 and space_cache, tested in btrfs/131.

This test does not apply any workload after the fs is mounted, just
checks is the option was set/unset correctly.

Kernel with the following patch should pass the test:
  btrfs: reset compression level for lzo on remount

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/220 [new file with mode: 0755]
tests/btrfs/220.out [new file with mode: 0644]
tests/btrfs/group