]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/{472,496}: fix swap file creation on Btrfs
authorOmar Sandoval <osandov@fb.com>
Fri, 2 Nov 2018 21:29:37 +0000 (14:29 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 4 Nov 2018 16:42:49 +0000 (00:42 +0800)
commit70c4067285b0bc07661590ab608388e0bab1c912
treefce5b8174c7a0056df6608cf61227b1026a2a497
parent290e7a5636e76a8fbe27703609a827c88a7e5d25
generic/{472,496}: fix swap file creation on Btrfs

The swap file must be set nocow before it is written to, otherwise it is
ignored and Btrfs refuses to activate it as swap.

Fixes: 25ce9740065e ("generic: test swapfile creation, activation, and deactivation")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/472
tests/generic/496