From 7e5531eb957cb181d6bbf0978be120a064df262b Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Tue, 8 Mar 2016 15:44:04 +0530 Subject: features/shard: Implement discard fop Backport of: http://review.gluster.org/13657 Change-Id: I1b5163ca1ceee846963f6b7d8df62dbb348afbbc BUG: 1299712 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/13774 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Ravishankar N CentOS-regression: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- tests/volume.rc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/volume.rc') 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 +} -- cgit