[PATCH] fallocate.2: document FALLOC_FL_PUNCH_HOLE
From: Lucian Adrian Grijincu <hidden>
Date: 2011-01-14 00:35:02
Attachments
- 0001-fallocate.2-document-FALLOC_FL_PUNCH_HOLE.patch [text/x-patch] 1122 bytes · preview
From: Lucian Adrian Grijincu <hidden>
Date: 2011-01-14 00:35:02
This functionality landed in Linux 2.6.38 since:
commit 79124f18b335172e1916075c633745e12dae1dac
Author: Josef Bacik [off-list ref]
Date: Wed Nov 17 20:46:15 2010 -0500
fs: add hole punching to fallocate
Hole punching has already been implemented by XFS and OCFS2, and has the
potential to be implemented on both BTRFS and EXT4 so we need a
generic way to
get to this feature. The simplest way in my mind is to add
FALLOC_FL_PUNCH_HOLE
to fallocate() since it already looks like the normal fallocate() operation.
I've tested this patch with XFS and BTRFS to make sure XFS did what it's
supposed to do and that BTRFS failed like it was supposed to. Thank you,
CC: Josef Bacik <redacted>
CC: Al Viro <viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org>
Signed-off-by: Lucian Adrian Grijincu <redacted>
---
man2/fallocate.2 | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)