diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2018-12-19 17:57:58 +0530 |
---|---|---|
committer | Soumya Koduri <skoduri@redhat.com> | 2019-01-03 15:08:16 +0530 |
commit | 321f5a2b021be77463e045de84975902912a8c1a (patch) | |
tree | 56f9bd5725a114446a0b34aad879b0bfe358773a | |
parent | 9ab7053c1c1255403a7e330892523c35a4fa59e6 (diff) |
tests: Fix zero-flag.t script
The default value of shard-block-size was changed from 4MB
to 64MB sometime back. The script "fallocate"s a 6MB file
and expects it to have 1 shard under .shard. This worked when
the shard-block-size was 4MB. With the default value now at 64MB,
file "file1" won't have any shards under .shard and the stat on the
1st shard's path fails with ENOENT.
Changed the script to explicitly set shard-block-size to 4MB.
Change-Id: I7f1785922287d16d74c95fa57cbbe12e6e66e4f7
fixes: bz#1662635
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
(cherry picked from commit 32f55a2708903145a51de5705ca8e60ff6dd6f9e)
-rw-r--r-- | tests/bugs/shard/zero-flag.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/bugs/shard/zero-flag.t b/tests/bugs/shard/zero-flag.t index 84cb9635a1b..1f39787ab9f 100644 --- a/tests/bugs/shard/zero-flag.t +++ b/tests/bugs/shard/zero-flag.t @@ -14,6 +14,7 @@ TEST glusterd TEST pidof glusterd TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1,2,3} TEST $CLI volume set $V0 features.shard on +TEST $CLI volume set $V0 features.shard-block-size 4MB TEST $CLI volume start $V0 TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0 |