summaryrefslogtreecommitdiff
path: root/sutils/swapon.c
AgeCommit message (Collapse)Author
2002-05-082002-05-07 Roland McGrath <roland@frob.com>Roland McGrath
* swapon.c (check_signature): Use %zu for size_t arg.
2001-02-282001-02-27 Roland McGrath <roland@frob.com>Roland McGrath
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.
1999-11-191999-11-16 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* swapon.c (swaponoff): Check for a null default pager port.
1999-05-151999-05-15 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* swapon.c: Support -a (reading fstab).
1998-07-201998-07-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* swapon.c (main): Fix return type to int, and use return.
1997-07-15Doc fix.Miles Bader
1997-07-09Initial checkinMiles Bader