summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
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
+}