From 6e6f044a259f218a2727fc9399a0d1483bb88f70 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Fri, 6 Sep 2019 11:46:27 +0200 Subject: [PATCH] marsadm: new primitive resource-possible-size --- userspace/marsadm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/userspace/marsadm b/userspace/marsadm index e645e0af..468a4204 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -4694,6 +4694,9 @@ sub eval_fn { } return get_link($path, 1); } + if (/^resource[-_]?possible[-_]?size$/) { + return get_possible_size($$env{"cmd"}, $$env{"res"}); + } # time handling and pausing if (/^time$/) { return mars_time(); @@ -5504,6 +5507,8 @@ my %trivial_globs = => "", "{disk,resource,device}-size" => "", + "resource-possible-size" + => "", "deletable-size" => "", "occupied-size"