Using custom tags and a recursive refresh fails when creating snapshot with error:
ERROR: unrecognized zrep subcommand -R
This is because it executes something like
ssh source_host zrep -t zrep_tag -R snaponly fs
The -R flag comes after -t flag. However, zrep (prior this commit) required -R to be the fist flag.
This commit moves the check for -R flag and initialization of ZREP_R to the same loop that checks for other global flags (currently -t and -D). This fixes the issue.
Using custom tags and a recursive
refresh
fails when creating snapshot with error:This is because it executes something like
The
-R
flag comes after-t
flag. However,zrep
(prior this commit) required-R
to be the fist flag.This commit moves the check for
-R
flag and initialization ofZREP_R
to the same loop that checks for other global flags (currently-t
and-D
). This fixes the issue.