From 0e048b309b64e574039fc1ebedb971791d43b5e1 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 Change-Id: Ia5bd8d36b21a586df6556fbec3474892d5871229 BUG: 1261841 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/13657 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri CentOS-regression: Gluster Build System --- 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 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 +} -- cgit