← Commit list

e64bf409d

Glenn L McGrath
Glenn L McGrath
2003-10-31
FAILED Duration: 69s

Subject

Patch from David Meggy to make the swap default to the new version if no version is specified and the kernel is relatively new.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/mkswap.c+1 -5
@@ -320,11 +320,7 @@ int mkswap_main(int argc, char **argv)
}
if (version == -1) {
- if (PAGES <= V0_MAX_PAGES)
- version = 0;
- else if (get_kernel_revision() < MAKE_VERSION(2, 1, 117))
- version = 0;
- else if (pagesize < 2048)
+ if (get_kernel_revision() < MAKE_VERSION(2, 1, 117))
version = 0;
else
version = 1;