Add support for gluster discard (punch hole, via fallocate()). Expose via fuse and gfapi.
REVIEW: http://review.gluster.org/5090 (glusterfs: discard (hole punch) support) posted (#1) for review on master by Brian Foster (bfoster)
http://review.gluster.org/5090
REVIEW: http://review.gluster.org/5090 (glusterfs: discard (hole punch) support) posted (#2) for review on master by Brian Foster (bfoster)
REVIEW: http://review.gluster.org/5144 (gfapi: async discard support) posted (#1) for review on master by Brian Foster (bfoster)
REVIEW: http://review.gluster.org/5146 (just a test Signed-off-by: jian.hou <hjimmy19870806>) posted (#1) for review on release-3.4 by 健 侯 (hjimmy19870806)
REVIEW: http://review.gluster.org/5144 (gfapi: async discard support) posted (#2) for review on master by Brian Foster (bfoster)
REVIEW: http://review.gluster.org/5090 (glusterfs: discard (hole punch) support) posted (#3) for review on master by Brian Foster (bfoster)
COMMIT: http://review.gluster.org/5090 committed in master by Anand Avati (avati) ------ commit 17f287172413dc04244781aa5302a0e4f10e2777 Author: Brian Foster <bfoster> Date: Thu May 23 12:19:42 2013 -0400 glusterfs: discard (hole punch) support Add support for the DISCARD file operation. Discard punches a hole in a file in the provided range. Block de-allocation is implemented via fallocate() (as requested via fuse and passed on to the brick fs) but a separate fop is created within gluster to emphasize the fact that discard changes file data (the discarded region is replaced with zeroes) and must invalidate caches where appropriate. BUG: 963678 Change-Id: I34633a0bfff2187afeab4292a15f3cc9adf261af Signed-off-by: Brian Foster <bfoster> Reviewed-on: http://review.gluster.org/5090 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Anand Avati <avati>
COMMIT: http://review.gluster.org/5144 committed in master by Anand Avati (avati) ------ commit cede8eb3d0007dcd6eb8929d5031ff25be955ed6 Author: Brian Foster <bfoster> Date: Tue Jun 4 11:54:43 2013 -0400 gfapi: async discard support From: Bharata B Rao <bharata.ibm.com> Add glfs_discard_async() to meet QEMU's discard requirements. BUG: 963678 Change-Id: I97723107fca88dd96cddc08cd67a286645a37922 Signed-off-by: Bharata B Rao <bharata.ibm.com> Signed-off-by: Brian Foster <bfoster> Reviewed-on: http://review.gluster.org/5144 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Anand Avati <avati>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.5.0, please reopen this bug report. glusterfs-3.5.0 has been announced on the Gluster Developers mailinglist [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/6137 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user