xfs
[Top] [All Lists]

[PATCH] xfsprogs: document fpunch command in xfs_io

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfsprogs: document fpunch command in xfs_io
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Sat, 08 Dec 2012 13:12:35 -0600
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0
Add manpage documentation for the new fpunch command in xfs_io.

Also fix references to the fallocate manpage, which is (now?)
in section 2, not section 3 of the man pages.  (Since it's
a syscall, not a library function).

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>
---

diff --git a/man/man8/xfs_io.8 b/man/man8/xfs_io.8
index f7c6935..9b9ece8 100644
--- a/man/man8/xfs_io.8
+++ b/man/man8/xfs_io.8
@@ -355,17 +355,23 @@ manual page.
 .BI "falloc [ \-k ]" " offset length"
 Allocates reserved, unwritten space for part of a file using the
 fallocate routine as described in the
-.BR fallocate (3)
+.BR fallocate (2)
 manual page.
 .RS 1.0i
 .PD 0
 .TP 0.4i
 .B \-k
 will set the FALLOC_FL_KEEP_SIZE flag as described in
-.BR fallocate (3).
+.BR fallocate (2).
 .PD
 .RE
 .TP
+.BI fpunch " offset length"
+Punches (de-allocates) blocks in the file by calling fallocate with 
+the FALLOC_FL_PUNCH_HOLE flag as described in the
+.BR fallocate (2)
+manual page.
+.TP
 .BI truncate " offset"
 Truncates the current file at the given offset using
 .BR ftruncate (2).

<Prev in Thread] Current Thread [Next in Thread>