From 6df883cef3e69b37a192aae9e979f95b32f8ad41 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Tue, 9 Feb 2016 16:40:36 +0530 Subject: tests, shard: fallocate tests refactor Change-Id: I3f275185f4dcb1939e8074851c8f140c5e40b28d BUG: 1261841 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/13405 Smoke: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Ravishankar N CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System --- tests/volume.rc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 69f701a93ec..3a98b87ef70 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -649,3 +649,9 @@ function scrub_status() $CLI volume bitrot $vol scrub status | grep "^$field: " | sed 's/.*: //'; } + +function get_gfid_string { + local path=$1; + getfattr -n glusterfs.gfid.string $1 2>/dev/null \ + | grep glusterfs.gfid.string | cut -d '"' -f 2 +} -- cgit