summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
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
+}