marsadm: new primitive resource-possible-size

This commit is contained in:
Thomas Schoebel-Theuer 2019-09-06 11:46:27 +02:00 committed by Thomas Schoebel-Theuer
parent 30f2210db3
commit 6e6f044a25
1 changed files with 5 additions and 0 deletions

View File

@ -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"