summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-08-21 08:50:23 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2014-12-02 21:44:13 -0800
commit85fa19eef36c166287ba87597684d1e0b532add0 (patch)
tree504e3d66cc92b18c082e2069eabb9f095fb762af /tests/volume.rc
parentf5ef4d808724afe4ddd477b0c0e8b3eb985319db (diff)
tests: Data self-heal test cases
Change-Id: I74d08797b791ea6649d9aba585996e9ec680e3f8 BUG: 1128721 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/8538 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index a216ba5fb7f..4712179efd5 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -415,3 +415,13 @@ function force_umount {
umount -f $1
if [ $? -eq 0 ]; then echo "Y"; else echo "N"; fi
}
+
+function assign_gfid {
+ local gfid=$1
+ local file=$2
+ setfattr -n trusted.gfid -v $1 $2
+}
+
+function get_random_gfid {
+ echo "0x"$(uuidgen | awk -F '-' 'BEGIN {OFS=""} {print $1,$2,$3,$4,$5}')
+}