summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2016-05-26 08:25:37 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-05-30 21:23:55 -0700
commita45bef14b370fe82d4f3af41a35d2802a359c287 (patch)
treece6aa3f393bc0b6cc8abba105431340ff36d5469 /tests/volume.rc
parent4f4a94a35a24d781f3f0e584a8cb59c019e50d6f (diff)
tests: Add more tests for granular entry self-heal feature
Change-Id: I6f14e413c538e392c8ee5bf4bf9f283e8ac792b7 BUG: 1332566 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/14542 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Ravishankar N <ravishankar@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index f46f8a19e62..6ff25cc79a3 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -677,3 +677,8 @@ function get_gfid_string {
function file_all_zeroes {
< $1 tr -d '\0' | read -n 1 || echo 1
}
+
+function get_hard_link_count {
+ local path=$1;
+ stat -c %h $path
+}