generic: test invalid swap file activation

Swap files cannot have holes, and they must at least two pages.
swapon(8) and mkswap(8) have stricter restrictions, so add versions
of those commands without any restrictions.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Omar Sandoval
2018-05-16 13:38:49 -07:00
committed by Eryu Guan
parent 37e5788a55
commit d84c105170
7 changed files with 193 additions and 1 deletions
+2
View File
@@ -92,6 +92,7 @@
/src/lstat64
/src/makeextents
/src/metaperf
/src/mkswap
/src/mmapcat
/src/multi_open_unlink
/src/nametest
@@ -111,6 +112,7 @@
/src/seek_sanity_test
/src/stale_handle
/src/stat_test
/src/swapon
/src/t_access_root
/src/t_dir_offset
/src/t_dir_offset2