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/afr/src/afr-inode-write.c | 2 +- xlators/cluster/afr/src/afr-inode-write.h | 2 +- xlators/cluster/afr/src/afr.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/cluster/afr') diff --git a/xlators/cluster/afr/src/afr-inode-write.c b/xlators/cluster/afr/src/afr-inode-write.c index c1ec69a55..d62847def 100644 --- a/xlators/cluster/afr/src/afr-inode-write.c +++ b/xlators/cluster/afr/src/afr-inode-write.c @@ -2807,7 +2807,7 @@ out: int afr_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) { afr_private_t *priv = NULL; afr_local_t *local = NULL; diff --git a/xlators/cluster/afr/src/afr-inode-write.h b/xlators/cluster/afr/src/afr-inode-write.h index 8e93ca44a..7b1fc5528 100644 --- a/xlators/cluster/afr/src/afr-inode-write.h +++ b/xlators/cluster/afr/src/afr-inode-write.h @@ -78,5 +78,5 @@ afr_fallocate (call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t mode, int afr_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); #endif /* __INODE_WRITE_H__ */ diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 21064db58..dcf0f8d0c 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -712,7 +712,7 @@ typedef struct _afr_local { struct { off_t offset; - size_t len; + off_t len; struct iatt prebuf; struct iatt postbuf; } zerofill; -- cgit