diff options
| author | Krutika Dhananjay <kdhananj@redhat.com> | 2016-03-08 15:44:04 +0530 |
|---|---|---|
| committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2016-03-24 17:49:46 -0700 |
| commit | 7e5531eb957cb181d6bbf0978be120a064df262b (patch) | |
| tree | 3cb6c421689e64bf7c17eb723d08f2c9874c68c8 /tests/bugs/shard/bug-shard-zerofill.t | |
| parent | aa9501a21b9b2780c3a365a58d67a243b380f995 (diff) | |
features/shard: Implement discard fop
Backport of: http://review.gluster.org/13657
Change-Id: I1b5163ca1ceee846963f6b7d8df62dbb348afbbc
BUG: 1299712
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/13774
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'tests/bugs/shard/bug-shard-zerofill.t')
| -rw-r--r-- | tests/bugs/shard/bug-shard-zerofill.t | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/bugs/shard/bug-shard-zerofill.t b/tests/bugs/shard/bug-shard-zerofill.t index c3211493fe1..ad508c83236 100644 --- a/tests/bugs/shard/bug-shard-zerofill.t +++ b/tests/bugs/shard/bug-shard-zerofill.t @@ -3,10 +3,6 @@ . $(dirname $0)/../../include.rc . $(dirname $0)/../../volume.rc -function file_all_zeroes { - < $1 tr -d '\0' | read -n 1 || echo 1 -} - cleanup TEST glusterd @@ -23,7 +19,7 @@ TEST touch $M0/foo gfid_foo=$(get_gfid_string $M0/foo) TEST gcc -Wall -O2 -I api/src -o $(dirname $0)/bug-shard-zerofill $(dirname $0)/bug-shard-zerofill.c -lgfapi -TEST $(dirname $0)/bug-shard-zerofill $H0 $V0 /foo +TEST $(dirname $0)/bug-shard-zerofill $H0 $V0 /foo `gluster --print-logdir`/glfs-$V0.log # This should ensure /.shard is created on the bricks. TEST stat $B0/${V0}0/.shard @@ -40,7 +36,7 @@ TEST `echo "abc" >> $M0/foo` EXPECT_NOT "1" file_all_zeroes $M0/foo -TEST umount $M0 +EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0 TEST $CLI volume stop $V0 TEST $CLI volume delete $V0 |
