Age | Commit message (Collapse) | Author |
|
* swapon.c (swaponoff): Fix last change.
|
|
* swapon.c (swaponoff): If get_privileged_ports fails with EPERM, try
to open /servers/default-pager instead.
|
|
* swapon.c (check_signature): Use %zu for size_t arg.
|
|
Use a new, more flexible RPC interface to the default pager.
This allows swapon to do its own interpretation of Linux swap
signature pages, and to support partial-device stores such as
store_open will return for regular files on disk filesystems.
* swapon.c: Include <hurd/default_pager.h>, not <mach/default_pager.h>.
(ignore_signature, require_signature, quiet): New variables.
(options): Add --silent, --no-signature, --require-signature.
(main: parse_opt): Parse them.
(check_signature): New function.
(swaponoff): Use it unless --no-signature set, to get a remapped store
using the pages indicated by the Linux signature page. Try new
default_pager_paging_storage RPC first, using a possibly-remapped
device store. If the default pager does not support that, fall back
to the old protocol that only supports whole devices (and wherein the
default pager itself interprets a Linux signature page).
* Makefile (swapon, swapoff): Depend on default_pagerUser.o.
|
|
* swapon.c (swaponoff): Check for a null default pager port.
|
|
* swapon.c: Support -a (reading fstab).
|
|
* swapon.c (main): Fix return type to int, and use return.
|
|
|
|
|