2007-04-12 18:31:42 +02:00
|
|
|
default swap to V1 in any case [#205956]
|
|
|
|
|
|
|
|
Index: util-linux-ng-2.12r+git20070330/disk-utils/mkswap.c
|
2006-12-19 00:18:10 +01:00
|
|
|
===================================================================
|
2007-04-12 18:31:42 +02:00
|
|
|
--- util-linux-ng-2.12r+git20070330.orig/disk-utils/mkswap.c
|
|
|
|
+++ util-linux-ng-2.12r+git20070330/disk-utils/mkswap.c
|
|
|
|
@@ -617,9 +617,7 @@ main(int argc, char ** argv) {
|
2006-12-19 00:18:10 +01:00
|
|
|
version = 1;
|
|
|
|
else
|
|
|
|
/* use version 1 as default, if possible */
|
|
|
|
- if (PAGES <= V0_MAX_PAGES && PAGES > V1_MAX_PAGES)
|
|
|
|
- version = 0;
|
|
|
|
- else if (linux_version_code() < MAKE_VERSION(2,1,117))
|
|
|
|
+ if (linux_version_code() < MAKE_VERSION(2,1,117))
|
|
|
|
version = 0;
|
|
|
|
else if (pagesize < 2048)
|
|
|
|
version = 0;
|