From e02c06e265d8105e4f17dc6425b3c09e32342183 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 17 Apr 2013 11:18:41 +0200 Subject: [PATCH] marsadm: disallow --force on 'all' resources --- userspace/marsadm | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/marsadm b/userspace/marsadm index 7e01187e..6487b477 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -1188,6 +1188,7 @@ sub do_res { } if ($res eq "all" && $cmd ne "show") { + ldie "For safty reasons, --force is only allowed on explicitly named resources. Combination of 'all' with --force is disallowed!\n" if $force; foreach $res (glob("$mars/resource-*")) { next unless -e "$res/data-$host"; $res =~ s/^.*\/resource-(.*)$/$1/;