diff options
Diffstat (limited to 'tests/volume.rc')
-rw-r--r-- | tests/volume.rc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc index 3a98b87ef70..e488aa73b1c 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -655,3 +655,7 @@ function get_gfid_string { getfattr -n glusterfs.gfid.string $1 2>/dev/null \ | grep glusterfs.gfid.string | cut -d '"' -f 2 } + +function file_all_zeroes { + < $1 tr -d '\0' | read -n 1 || echo 1 +} |