diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2016-03-08 15:44:04 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2016-03-24 17:49:46 -0700 |
commit | 7e5531eb957cb181d6bbf0978be120a064df262b (patch) | |
tree | 3cb6c421689e64bf7c17eb723d08f2c9874c68c8 /tests/volume.rc | |
parent | aa9501a21b9b2780c3a365a58d67a243b380f995 (diff) |
features/shard: Implement discard fop
Backport of: http://review.gluster.org/13657
Change-Id: I1b5163ca1ceee846963f6b7d8df62dbb348afbbc
BUG: 1299712
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/13774
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
CentOS-regression: 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.rc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc index 13fed0186b7..19848bca883 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -652,3 +652,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 +} |