mirror of
https://github.com/schoebel/mars
synced 2025-02-15 11:36:58 +00:00
marsadm: new primitives device-{ops-rate,amount-rate,rate}
This commit is contained in:
parent
c2fed92879
commit
2f35c9f6e7
@ -5418,7 +5418,7 @@ sub eval_fn {
|
||||
my $lnk = $$env{"resdir"} . "/actual-" . $$env{"host"} . "/replay-code";
|
||||
return get_link($lnk, 2);
|
||||
}
|
||||
if (/^(sync|fetch|replay|work)[-_]?(rate|ops[-_]?rate|amount[-_]?rate|remain)$/) {
|
||||
if (/^(device|sync|fetch|replay|work)[-_]?(rate|ops[-_]?rate|amount[-_]?rate|remain)$/) {
|
||||
my $what = $1;
|
||||
my $select = $2;
|
||||
if ($what eq "work") {
|
||||
@ -5438,6 +5438,7 @@ sub eval_fn {
|
||||
$name =~ s/-/_/;
|
||||
my %names =
|
||||
(
|
||||
"device" => "if",
|
||||
"sync" => "sync",
|
||||
"fetch" => "file",
|
||||
"replay" => "replay",
|
||||
@ -6445,6 +6446,8 @@ my %trivial_globs =
|
||||
=> "",
|
||||
"{sync,fetch,replay}-{ops-rate,amount-rate,rate,remain}"
|
||||
=> "",
|
||||
"device-{ops-rate,amount-rate,rate}"
|
||||
=> "",
|
||||
"replay-basenr"
|
||||
=> "",
|
||||
"{fetch,replay,work}-{lognr,logcount}"
|
||||
|
Loading…
Reference in New Issue
Block a user