diff options
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 +} |