[dev][ubase][PATCH] swapon/swapoff -a and -p

From: Carlos Torres <vlaadbrain_AT_gmail.com>
Date: Sat, 8 Feb 2014 22:34:31 -0500

Hi sin,
attached are two patches for the -a flag on swapon and swapoff. there
is room for improvement. and cleaning up, but i wasn't sure how you
might want it organized. i altered the error handling a little bit,
since it felt funny how you let the loop continue on error and
possibly removing the EXIT_FAILURE return code if two devices are to
be swapped on/off and the first failed but the second succeeds. I
make it so that once EXIT_FAILURE is set it doesn't go away.

i don't update TODO.

--Carlos

Received on Sun Feb 09 2014 - 04:34:31 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 09 2014 - 04:36:06 CET