1 /* swapoff.c - Disable region for swapping
3 * Copyright 2012 Elie De Brauwer <eliedebrauwer@gmail.com>
5 USE_SWAPOFF(NEWTOY(swapoff, "<1>1", TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
11 usage: swapoff swapregion
13 Disable swapping on a given swapregion.
18 void swapoff_main(void)
20 if (swapoff(toys.optargs[0])) perror_exit("failed to remove swaparea");