[Libhugetlbfs-devel] [PATCH] Make --add-temp-swap obey --dry-run switch

2009-09-28 Thread Eric B Munson
This patch make --add-temp-swap obey the --dry-run swtich and simply print what it would do instead of creating swap space. Signed-off-by: Eric B Munson --- hugeadm.c | 26 +++--- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/hugeadm.c b/hugeadm.c index a7

[Libhugetlbfs-devel] [PATCH] Make --dry-run switch actually skip actions

2009-09-28 Thread emunson
From: Eric B Munson Currently the --dry-run switch prints the equivalent shell script but it still executes the command as well. This patch makes the --dry-run switch skip the action after printing the shell script. Signed-off-by: Eric B Munson --- hugeadm.c | 72 +++