summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
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-18 02:50:04 -0700
commitec89ddc8471d438f9ea45f9a4a779cd87c98666a (patch)
tree8d2a9750a9343e336c211cfdca51adcb3f9f0c99 /tests/volume.rc
parent609d0cf8d678626224d70a8a8a269ab6076a5983 (diff)
tests, shard: fallocate tests refactor
Backport of: http://review.gluster.org/13405 Change-Id: Ic6f9d2412303474e6b7948d2dd1475b14da29508 BUG: 1299712 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/13670 Smoke: Gluster Build System <jenkins@build.gluster.com> Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anuradha Talur <atalur@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index bc193e867a2..13fed0186b7 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -646,3 +646,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
+}