summaryrefslogtreecommitdiffstats
path: root/tests/bugs/shard/bug-shard-zerofill.t
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2016-02-09 16:40:36 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-03-10 03:16:55 -0800
commit6df883cef3e69b37a192aae9e979f95b32f8ad41 (patch)
tree33729a013e69528861e8449c24c056cf5e21d211 /tests/bugs/shard/bug-shard-zerofill.t
parented98d128a9413f7b8af328ca27bf4b27514d61e9 (diff)
tests, shard: fallocate tests refactor
Change-Id: I3f275185f4dcb1939e8074851c8f140c5e40b28d BUG: 1261841 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/13405 Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Reviewed-by: Ravishankar N <ravishankar@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'tests/bugs/shard/bug-shard-zerofill.t')
-rw-r--r--tests/bugs/shard/bug-shard-zerofill.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/bugs/shard/bug-shard-zerofill.t b/tests/bugs/shard/bug-shard-zerofill.t
index d5113001b69..c3211493fe1 100644
--- a/tests/bugs/shard/bug-shard-zerofill.t
+++ b/tests/bugs/shard/bug-shard-zerofill.t
@@ -20,8 +20,7 @@ TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0
# Create a file.
TEST touch $M0/foo
-gfid_foo=`getfattr -n glusterfs.gfid.string $M0/foo 2>/dev/null \
- | grep glusterfs.gfid.string | cut -d '"' -f 2`
+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