[Top] [All Lists]

[PATCH v5 10/10] manpage: update FALLOC_FL_COLLAPSE_RANGE flag in falloc

To: viro@xxxxxxxxxxxxxxxxxx, david@xxxxxxxxxxxxx, bpm@xxxxxxx, tytso@xxxxxxx, adilger.kernel@xxxxxxxxx, jack@xxxxxxx, mtk.manpages@xxxxxxxxx, lczerner@xxxxxxxxxx
Subject: [PATCH v5 10/10] manpage: update FALLOC_FL_COLLAPSE_RANGE flag in fallocate
From: Namjae Jeon <linkinjeon@xxxxxxxxx>
Date: Wed, 19 Feb 2014 01:39:53 +0900
Cc: linux-fsdevel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Namjae Jeon <linkinjeon@xxxxxxxxx>, Namjae Jeon <namjae.jeon@xxxxxxxxxxx>, Ashish Sangwan <a.sangwan@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=0e6ag6Y1jUG3G8FqZ7P6ysteuuGmRPY6i647wwdkO+c=; b=gW8QDxVHOvaGampl4S3dCl8AKCbazU+yEI2k3XiDSMYcW9Fx3T6fdggQsMWq0brlN6 zK0rST6bbjPPHA+II3T/2p19lJnhJawv6Bj0VFxG0GLwCjgCBAu0wuIXJHGHvqX4yQEI opzFcjR7ie0F1vKZq/LX9phwujuHUMounQf4E1rjQlL3A5EorrHFDD67F1GWAdTFAktx Ms5qCW8FzMxtz/54iql2vFnmFmaNlHupc0TAqU15+wXC1kMUup/wTy2tQA2g5BfhZUjo 5FcQ5UGK5PRongGnG8To73v/nY6Sy0MfQZh9BxikGrEfIop1uYzkQUKZlTHCBFoAhrn4 VcEw==
From: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>

Update FALLOC_FL_COLLAPSE_RANGE flag in fallocate.

Signed-off-by: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>
Signed-off-by: Ashish Sangwan <a.sangwan@xxxxxxxxxxx>
 man2/fallocate.2 |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/man2/fallocate.2 b/man2/fallocate.2
index b31bbde..06a0b0c 100644
--- a/man2/fallocate.2
+++ b/man2/fallocate.2
@@ -1,5 +1,6 @@
 .\" Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved
 .\" Written by Dave Chinner <dgc@xxxxxxx>
+.\" Updated by Namjae Jeon <namjae.jeon@xxxxxxxxxxx>
 .\" May be distributed as per GNU General Public License version 2.
@@ -7,6 +8,7 @@
 .\" 2011-09-19: Added FALLOC_FL_PUNCH_HOLE
 .\" 2011-09-19: Substantial restructuring of the page
+.\" 2014-02-19: Added FALLOC_FL_COLLAPSE_RANGE
 .TH FALLOCATE 2 2014-01-24 "Linux" "Linux Programmer's Manual"
@@ -124,6 +126,25 @@ Btrfs (since Linux 3.7)
 .IP *
 tmpfs (since Linux 3.5)
 .\" commit 83e4fa9c16e4af7122e31be3eca5d57881d236fe
+.SS Collapsing file space
+Specifiying the
+flag in
+.I mode
+collpse space in the byte range starting at
+.I offset
+and continuing for
+.I len
+bytes. Within the specified range, it first de-allocates blocks and eliminates
+the hole created in this process by shifting data blocks into the hole.
+Different filesystem may implement different limitatios on the granularity of
+the operation. Most filesystem will limit operations to filesystem block size
+boundaries, but this boundary may be larger or smaller depending
+on the filesystem and/or the configuration of the filesystem or file.
+If filesystem has such limitation on granularity, It will return error(EINVAL).
 On success,
 .BR fallocate ()

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH v5 10/10] manpage: update FALLOC_FL_COLLAPSE_RANGE flag in fallocate, Namjae Jeon <=