prefer swap device option

This commit is contained in:
Carlos J. Torres 2014-02-08 22:24:17 -05:00 committed by sin
parent 9938320eea
commit c41c38649c
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,7 @@
static void static void
usage(void) usage(void)
{ {
eprintf("usage: %s [-d] [-a] device\n", argv0); eprintf("usage: %s [-dp] [-a] device\n", argv0);
} }
int int
@ -28,6 +28,9 @@ main(int argc, char *argv[])
case 'd': case 'd':
flags |= SWAP_FLAG_DISCARD; flags |= SWAP_FLAG_DISCARD;
break; break;
case 'p':
flags |= SWAP_FLAG_PREFER;
break;
default: default:
usage(); usage();
} ARGEND; } ARGEND;