diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2016-05-26 08:25:37 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2016-06-01 04:20:17 -0700 |
commit | 0cd47f3d96029fcc898e348dbc58d2086541a288 (patch) | |
tree | dd95a48ac6a5d40b8458cbbffe470f3460e499f5 /tests/volume.rc | |
parent | ffcd1e74c2ede8fedfd176b50b62a9e31ba9a08b (diff) |
tests: Add more tests for granular entry self-heal feature
Backport of: http://review.gluster.org/#/c/14542/
Change-Id: I62d383afdb2ee1dfde1e2646bdfd951ed9d5a75d
BUG: 1340991
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/14560
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r-- | tests/volume.rc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc index e488aa73b1c..f3dbaf4a7f2 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -659,3 +659,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 +} |