[hackers] [ubase] prefer swap device option || Carlos J. Torres

From: <git_AT_suckless.org>
Date: Sun, 09 Feb 2014 12:08:58 +0100

commit c41c38649c98242c4f592b067caac09dac62ea30
Author: Carlos J. Torres <vlaadbrain_AT_gmail.com>
Date: Sat Feb 8 22:24:17 2014 -0500

    prefer swap device option

diff --git a/swapon.c b/swapon.c
index 0610385..278aa73 100644
--- a/swapon.c
+++ b/swapon.c
_AT_@ -10,7 +10,7 @@
 static void
 usage(void)
 {
- eprintf("usage: %s [-d] [-a] device
", argv0);
+ eprintf("usage: %s [-dp] [-a] device
", argv0);
 }
 
 int
_AT_@ -28,6 +28,9 @@ main(int argc, char *argv[])
         case 'd':
                 flags |= SWAP_FLAG_DISCARD;
                 break;
+ case 'p':
+ flags |= SWAP_FLAG_PREFER;
+ break;
         default:
                 usage();
         } ARGEND;
Received on Sun Feb 09 2014 - 12:08:58 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 09 2014 - 12:12:23 CET