mirror of https://github.com/jimsalterjrs/sanoid
now obeying --quiet, and added 'INFO: ' prefix to skip message
This commit is contained in:
parent
22c137627a
commit
b02b9a582b
2
syncoid
2
syncoid
|
|
@ -184,7 +184,7 @@ sub syncdataset {
|
||||||
if ($debug) { print "DEBUG: syncing source $sourcefs to target $targetfs.\n"; }
|
if ($debug) { print "DEBUG: syncing source $sourcefs to target $targetfs.\n"; }
|
||||||
|
|
||||||
if (getzfsvalue($sourcehost,$sourcefs,$sourceisroot,'syncoid:no-sync') eq 'true') {
|
if (getzfsvalue($sourcehost,$sourcefs,$sourceisroot,'syncoid:no-sync') eq 'true') {
|
||||||
print "Skipping dataset (syncoid:nosync=true): $sourcefs...\n";
|
if (!$quiet) { print "INFO: Skipping dataset (syncoid:nosync=true): $sourcefs...\n"; }
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue