diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2016-02-09 16:40:36 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2016-03-10 03:16:55 -0800 |
commit | 6df883cef3e69b37a192aae9e979f95b32f8ad41 (patch) | |
tree | 33729a013e69528861e8449c24c056cf5e21d211 /tests/volume.rc | |
parent | ed98d128a9413f7b8af328ca27bf4b27514d61e9 (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/volume.rc')
-rw-r--r-- | tests/volume.rc | 6 |
1 files changed, 6 insertions, 0 deletions
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 +} |