From: Andrew Price Date: Thu, 26 Jan 2017 16:47:08 +0000 Subject: [Cluster-devel] [PATCH 5/5] gfs2-utils tests: Add tests for device topology handling in mkfs.gfs2 In-Reply-To: <20170126164708.23807-1-anprice@redhat.com> References: <20170126164708.23807-1-anprice@redhat.com> Message-ID: <20170126164708.23807-6-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- tests/mkfs.at | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.9.3