diff options
author | Matthias Koenig | 2007-07-18 16:15:45 +0200 |
---|---|---|
committer | Karel Zak | 2007-07-24 14:59:32 +0200 |
commit | 30294a2fe894bc1a3c71faf29e54f52dcbffc67e (patch) | |
tree | 1c1d735d33332e789f6d6b5c85ec1cad5447fe56 /misc-utils/script.c | |
parent | readprofile: fix on ppc64 (diff) | |
download | kernel-qcow2-util-linux-30294a2fe894bc1a3c71faf29e54f52dcbffc67e.tar.gz kernel-qcow2-util-linux-30294a2fe894bc1a3c71faf29e54f52dcbffc67e.tar.xz kernel-qcow2-util-linux-30294a2fe894bc1a3c71faf29e54f52dcbffc67e.zip |
mkswap: default to V1 in any case
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>
Diffstat (limited to 'misc-utils/script.c')
0 files changed, 0 insertions, 0 deletions