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>
This commit is contained in:
Marcos Paulo de Souza
2020-09-07 15:39:12 -03:00
committed by Eryu Guan
parent 43fbe02d87
commit 85de6a5e53
3 changed files with 305 additions and 0 deletions
+1
View File
@@ -221,3 +221,4 @@
217 auto quick trim dangerous
218 auto quick volume
219 auto quick volume
220 auto quick