summaryrefslogtreecommitdiffstats
path: root/sys-utils/fallocate.1
Commit message (Collapse)AuthorAgeFilesLines
* fallocate: Added posix_fallocate() support.Denis Chaplygin2017-01-311-0/+11
| | | | | | | No all filesystems support Linux fallocate. The new option allow use posix implementation if necessary. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: add insert range supportFabian Frederick2016-12-021-0/+3
| | | | | | | | | | | | Based on patch 83cc932d7412 ("fallocate: introduce an option -c to support COLLAPSE_RANGE") This patch includes FALLOC_FL_INSERT_RANGE flag added to Linux kernel v4.1 Thanks to Pádraig Brady for insert range definition Signed-off-by: Fabian Frederick <fabf@skynet.be>
* Place SEE ALSO entries in orderMichael Kerrisk (man-pages)2016-11-291-2/+2
| | | | | | | | | | | | This patch does only the following: * Order SEE ALSO entries first by section name, then alphabetically within section * Adds one or two missing commas in SEE ALSO lists * Removes one or two periods that were (inconsistently) used at the end of SEE ALSO lists. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* docs: miscellaneous tiny tweaks of man pagesBenno Schulenberg2016-03-171-2/+2
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fallocate: improve synopsis and spelling in man pageBenno Schulenberg2016-03-141-6/+4Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fallocate: restore man-page content that was deleted in commit 5b033bfdBenno Schulenberg2016-03-141-0/+120
| | | | | Reported-by: Andreas Henriksson <andreas@fatal.se> Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* chrt: make man page more structuredKarel Zak2016-01-201-120/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: restore minus symbols in long optsJ William Piggott2015-01-211-11/+11
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* docs: remove obsolete and unneeded comments from man-page filesBenno Schulenberg2015-01-121-1/+0Star
| | | | | | | Transform some of them into copyright lines. Also fix three header lines and snip some trailing whitespace. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: fix some things that were overlooked during the first passBenno Schulenberg2014-07-281-48/+56
| | | | | | | Mainly more option sorting, some formatting adjustments, and the adding of a missing --version here and there. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fallocate: use err_exclusive_options(), cleanup getopt_long() stuffKarel Zak2014-06-261-3/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: make man page readable for humansKarel Zak2014-06-261-28/+41
| | | | | | | | Well, let's copy & past from fallocate(2) syscall man page rather than try to be creative with another description for the flags. Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: add FALLOC_FL_ZERO_RANGE supportLukas Czerner2014-04-181-0/+14
| | | | | | | | Recent Linux kernel supports FALLOC_FL_ZERO_RANGE in fallocate(2). This patch adds FALLOC_FL_ZERO_RANGE support to fallocate utility, by introducing a new option -z|--zero-range. Signed-off-by: Lukas Czerner <lczerner@redhat.com>
* fallocate: introduce an option -c to support COLLAPSE_RANGEDongsu Park2014-04-181-0/+7
| | | | | | | | | | | | Introduce a new option -c (or --collapse-range) to support a new flag FALLOC_FL_COLLAPSE_RANGE for fallocate(2). It will nullify a particular range [offset, offset+len] by shifting extents beyond the range to the beginning of the hole. Cc: Lukas Czerner <lczerner@redhat.com> Cc: Namjae Jeon <namjae.jeon@samsung.com> Cc: Ashish Sangwan <a.sangwan@samsung.com> Signed-off-by: Dongsu Park <dongsu.park@profitbricks.com>
* fallocate: fix man page synopsisKarel Zak2014-02-171-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: improve --dig-holesKarel Zak2014-02-171-7/+6Star
| | | | | | | | | * don't use --length to specify hole size, always use stat.st_blksize * use --offset and --length to specify offset within the file (like another fallocate operations) Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: add --verbose, clean up usage()Karel Zak2014-02-141-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: Add "--dig-holes" optionRodrigo Campos2014-02-141-1/+18
| | | | | | | | | | This option tries to detect chunk of '\0's and punch a hole, making the file sparse in-place. [kzak@redhat.com: - fix coding style, use xalloc.h and err.h] Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar> Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: Clarify that space can also be deallocatedRodrigo Campos2014-02-141-5/+6
| | | | | | | The functionality is already there, with --punch-hole, but the text was for the preallocation case only. Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
* docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg2013-10-151-2/+2
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: add TB to list of supported suffixesKarel Zak2013-03-181-1/+1
| | | | | Reported-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: clarify KiB vs. KB in man pagesBernhard Voelker2012-03-301-3/+4
| | | | | | | | | Update the man pages of blkid, wipefs, fallocate, fstrim, losetup and hexdump to clarify the suffixes for the numerical values of the offset and size/length arguments regarding KiB=1024 vs KB=1000. Also mention the ZiB/YiB and ZB/YB suffixes supported by strtosize(). Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* fallocate: add FALLOC_FL_PUNCH_HOLE supportCong Wang2011-11-231-0/+3
| | | | | | | | | | | | | Recent Linux kernel supports FALLOC_FL_PUNCH_HOLE in fallocate(2). This patch adds FALLOC_FL_PUNCH_HOLE support to fallocate utility, by introducing a new option -p|--punch-hole. [kzak@redhat.com: - fix merge conflict in fallocate.1] Cc: Karel Zak <kzak@redhat.com> Cc: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: align fallocate.1 with howto-man-page.txtSami Kerola2011-09-291-10/+16
| | | | | | Add also earlierly missing --version to the manual. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-221-2/+2
| | | | | | | | | | Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: support suffixes for --offset and --lenghtKarel Zak2010-03-301-4/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: new commandKarel Zak2009-09-221-0/+51
The fallocate(1) utility is used to preallocate blocks to a file. This can be useful for virtual images, database files, testing, etc. Normally we'd hope that various tools will start using preallocation internally, but until then such a utility may be useful, and could be scripted as well. The original Eric's version is available at: http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2490 This version: - checks for fallocate glibc function and kernel syscall - does not provide a fallback and does not call posix_fallocate() - adds long options - uses err.h for errro messages - adds NLS support - cleanups man page Co-Author: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>