From 884a668a9c3e12e17d64ebd5ccd9fbf3d203fd1e Mon Sep 17 00:00:00 2001 From: Bharata B Rao Date: Fri, 15 Nov 2013 10:11:58 +0530 Subject: zerofill: Change the type of len argument of glfs_zerofill() to off_t glfs_zerofill() can be potentially called to zero-out entire file and hence allow for bigger value of length parameter. Change-Id: I75f1d11af298915049a3f3a7cb3890a2d72fca63 BUG: 1028673 Signed-off-by: Bharata B Rao Reviewed-on: http://review.gluster.org/6266 Tested-by: Gluster Build System Reviewed-by: M. Mohan Kumar Tested-by: M. Mohan Kumar Reviewed-by: Anand Avati --- xlators/cluster/dht/src/dht-common.h | 2 +- xlators/cluster/dht/src/dht-inode-write.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/cluster/dht') diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h index 5ccd66799..7564c600b 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -696,7 +696,7 @@ int32_t dht_fallocate(call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t dht_discard(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset, size_t len, dict_t *xdata); int32_t dht_zerofill(call_frame_t *frame, xlator_t *this, fd_t *fd, - off_t offset, size_t len, dict_t *xdata); + off_t offset, off_t len, dict_t *xdata); int32_t dht_init (xlator_t *this); void dht_fini (xlator_t *this); diff --git a/xlators/cluster/dht/src/dht-inode-write.c b/xlators/cluster/dht/src/dht-inode-write.c index 4b3f3a049..1ba98473e 100644 --- a/xlators/cluster/dht/src/dht-inode-write.c +++ b/xlators/cluster/dht/src/dht-inode-write.c @@ -707,7 +707,7 @@ dht_zerofill2(xlator_t *this, call_frame_t *frame, int op_ret) int dht_zerofill(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset, - size_t len, dict_t *xdata) + off_t len, dict_t *xdata) { xlator_t *subvol = NULL; int op_errno = -1; -- cgit