Gitweb:
http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=ca2fd609...
Commit: ca2fd6091834d7e13c9e4c0650f157b21a420074
Parent: 40efc958acc8a101394d1d0ec7975096fd0d9be4
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Thu Jan 26 16:33:51 2017 +0000
Committer: Andrew Price <anprice(a)redhat.com>
CommitterDate: Thu Jan 26 16:33:51 2017 +0000
gfs2-utils tests: Add tests for device topology handling in mkfs.gfs2
Add some tests that exercise mkfs.gfs2 against various device i/o limits
based on odd values seen in the wild.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
tests/mkfs.at | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tests/mkfs.at b/tests/mkfs.at
index d3521c8..c026a76 100644
--- a/tests/mkfs.at
+++ b/tests/mkfs.at
@@ -101,3 +101,11 @@ AT_CHECK([$GFS_MKFS -p lock_dlm -t
"quite_long_cluster_name_test_here:intec34p"
AT_CHECK([$GFS_MKFS -p lock_dlm -t
"financial_cluster:this_time_we_test_fs_naming_len" $GFS_TGT], 255, [ignore],
[ignore])
GFS_FSCK_CHECK([$GFS_MKFS -p lock_dlm -t
"a_really_long_named_cluster_here:concurrently_lets_check_fs_len" $GFS_TGT])
AT_CLEANUP
+
+AT_SETUP([Device i/o limits handling])
+AT_KEYWORDS(mkfs.gfs2 mkfs)
+AT_CHECK([$GFS_MKFS -p lock_nolock -o test_topology=0:0:0:0:0 $GFS_TGT], 0, [ignore],
[ignore])
+AT_CHECK([$GFS_MKFS -p lock_nolock -o test_topology=7168:512:0:33553920:512 $GFS_TGT], 0,
[ignore], [ignore])
+AT_CHECK([$GFS_MKFS -p lock_nolock -o test_topology=7168:512:8192:33553920:512 $GFS_TGT],
0, [ignore], [Warning: device is not properly aligned. This may harm performance.
+])
+AT_CLEANUP