summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkswap.8
Commit message (Collapse)AuthorAgeFilesLines
* docs: mkswap.8: recommend fallocate(1)Sami Kerola2013-01-251-1/+1
| | | | | | | | There is no reason why fallocate(1) should not be preferred instead of 'dd if=/dev/zero of=swapfile' with it's cumbersome size spec. Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap: wipe old signature if there is no part table by defaultMilan Broz2012-09-211-3/+2Star
| | | | | | | | | | | | | | | | | | | | Historically mkswap avoids wiping any signature on "whole disk", until force option is given. While the idea is that it should not wipe possible boot loader, in reality it leads to many situations where e.g. LUKS device is overwritten but still can be detected as LUKS (but unusable). Patch chnges behaviour that only if partition table is detected, signatures are not wiped. Also it removes check for block device - loop device can now map partitions in-kernel, so using mkswap on disk image in file should behave the same as on disk. Also it adds warning that know signature was wiped. Signed-off-by: Milan Broz <mbroz@redhat.com>
* blkid: document LIBBLKID_DEBUG usersDavidlohr Bueso2012-09-041-0/+3
| | | | | | | Update the manpages of programs that use this environment variable for extra debugging information. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* docs: tweak the formatting and wording of several disk-utils man pagesBenno Schulenberg2011-08-291-25/+30
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-221-1/+1
| | | | | | | | | | 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>
* doc: mention mkswap long options in man pageSami Kerola2011-02-211-35/+21Star
| | | | | | | | | | | The update will also expand kernel version numbers to have a month and year next to them. This should help users can get idea how long, for example, swap v1 has been around. [kzak@redhat.com: - modify synopsis, remove duplicate info about page size] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap: tweak the man pageBenno Schulenberg2010-06-301-35/+35
| | | | | | | | Note that option -v0 is obsolete, and remove the now unneeded comment about new-style swap areas. Further doublespace sentences, add some commas and articles, and alphabetize the options. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* mkswap: add a note that -p is uncecessaryKarel Zak2010-06-171-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap: restore device argument in mkswap.8 synopsisPeter Breitenlohner2009-11-021-0/+1
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* mkswap.8: formattingPeter Breitenlohner2009-08-171-6/+15
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* mkswap: clean up man pageKarel Zak2009-03-131-73/+58Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap: remove v0 swap space supportKarel Zak2009-03-111-16/+8Star
| | | | | | | The kernel has not supported v0 swap space format since 2.5.22. The new version v1 is supported since 2.1.117. Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap: set UUID for swap space (add -U option)Martin Schulze2008-02-151-1/+5
| | | | | | | | | | | | | | A friend of mine is looking into the possibility of cloning Debian (and other) systems automatically and stomped over swap partitions getting assigned new UUIDs every time the new harddisk is partitioned and swap is created. It's essential when partitions are to be recognised by their uuid and not by their old device path anymore. Addresses-Ubuntu-Bug: #66637 Signed-off-by: LaMont Jones <lamont@debian.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap: default to V1 in any caseMatthias Koenig2007-07-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mkswap(8) enforces to use v0 swap format when pagesize > 16kB. (use case might be ppc64 with CONFIG_PPC_64K_PAGES). As version 0 swap is not supported anymore by recent kernels, the behaviour in this case is rather strange. Here is a testcase: for i in 4 8 16 32 64; do mkswap -p `expr $i \* 1024` ./swap.file; done Setting up swapspace version 1, size = 4294963 kB Using user-specified page size 8192, instead of the system values 4096/4096 Setting up swapspace version 1, size = 4294959 kB Using user-specified page size 16384, instead of the system values 4096/4096 Setting up swapspace version 1, size = 4294950 kB Using user-specified page size 32768, instead of the system values 4096/4096 Setting up swapspace version 0, size = 4294934 kB Using user-specified page size 65536, instead of the system values 4096/4096 Setting up swapspace version 0, size = 4294901 kB Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* man pages: add "AVAILABILITY" sectionKarel Zak2007-07-031-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre4 tarball.Karel Zak2006-12-071-2/+5
|
* Imported from util-linux-2.12o tarball.Karel Zak2006-12-071-1/+5
|
* Imported from util-linux-2.11x tarball.Karel Zak2006-12-071-2/+2
|
* Imported from util-linux-2.10m tarball.Karel Zak2006-12-071-7/+6Star
|
* Imported from util-linux-2.10f tarball.Karel Zak2006-12-071-7/+24
|
* Imported from util-linux-2.9v tarball.Karel Zak2006-12-071-4/+9
|
* Imported from util-linux-2.9i tarball.Karel Zak2006-12-071-69/+94
|
* Imported from util-linux-2.7.1 tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.5 tarball.Karel Zak2006-12-071-18/+38
|
* Imported from util-linux-2.2 tarball.Karel Zak2006-12-071-0/+86