Merge pull request #183 from martinvw/feature/quiet-mode

Made two INFO prints mutable
This commit is contained in:
Jim Salter 2018-06-28 16:16:25 -04:00 committed by GitHub
commit 2224866da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
sanoid
View File

@ -294,7 +294,7 @@ sub prune_snapshots {
foreach my $snap( @prunesnaps ){
if ($args{'verbose'}) { print "INFO: pruning $snap ... \n"; }
if (iszfsbusy($path)) {
print "INFO: deferring pruning of $snap - $path is currently in zfs send or receive.\n";
if ($args{'verbose'}) { print "INFO: deferring pruning of $snap - $path is currently in zfs send or receive.\n"; }
} else {
if (! $args{'readonly'}) {
if (system($zfs, "destroy", $snap) == 0) {
@ -308,7 +308,7 @@ sub prune_snapshots {
removelock('sanoid_pruning');
removecachedsnapshots(0);
} else {
print "INFO: deferring snapshot pruning - valid pruning lock held by other sanoid process.\n";
if ($args{'verbose'}) { print "INFO: deferring snapshot pruning - valid pruning lock held by other sanoid process.\n"; }
}
}
}