Files
apfstests/common
Omar Sandoval bd6d67ee59 generic: enable swapfile tests on Btrfs
Commit 8c96cfbfe5 ("generic/35[67]: disable swapfile tests on
Btrfs") disabled the swapfile tests on Btrfs because it did not
support swapfiles at the time. Now that we're adding support, we
want these tests to run, but they don't. _require_scratch_swapfile
always fails for Btrfs because swapfiles on Btrfs must be set to
nocow. After fixing that, generic/356 and generic/357 fail for the
same reason. After fixing _that_, both tests still fail because we
don't allow reflinking a non-checksummed extent (which nocow
implies) to a checksummed extent.

Add a helper for formatting a swap file which does the chattr, and
chattr the second file, which gets these tests running on kernels
supporting Btrfs swapfiles.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2018-05-23 10:53:04 +08:00
..
2018-05-21 16:12:39 +08:00
2018-05-11 09:35:38 +08:00
2017-11-03 19:04:49 +08:00
2018-03-01 23:02:48 +08:00
2017-11-26 15:37:22 +08:00
2018-05-23 10:53:04 +08:00
2018-05-11 09:35:38 +08:00