summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 9a06687cd86..9e4843e06c4 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -300,5 +300,11 @@ function data_written_count {
echo "$1" | grep "Data Written:$2bytes" | wc -l
}
-
-
+function has_holes {
+ if [ $((`stat -c '%b*%B-%s' -- $1`)) -lt 0 ];
+ then
+ echo "1"
+ else
+ echo "0"
+ fi
+}