summaryrefslogtreecommitdiffstats
path: root/tests/afr.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/afr.rc')
-rw-r--r--tests/afr.rc14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/afr.rc b/tests/afr.rc
index 2aae292314a..ed376f0b41f 100644
--- a/tests/afr.rc
+++ b/tests/afr.rc
@@ -1,5 +1,19 @@
#!/bin/bash
+function create_brick_xattrop_entry {
+ local xattrop_dir=$(afr_get_index_path $1)
+ local base_entry=`ls $xattrop_dir`
+ local gfid_str
+ local params=`echo "$@" | cut -d' ' -f2-`
+ echo $params
+
+ for file in $params
+ do
+ gfid_str=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $1/$file))
+ ln $xattrop_dir/$base_entry $xattrop_dir/$gfid_str
+ done
+}
+
function diff_dirs {
diff <(ls $1 | sort) <(ls $2 | sort)
}