Skip to content

Commit

Permalink
Merge pull request #183 from martinvw/feature/quiet-mode
Browse files Browse the repository at this point in the history
Made two INFO prints mutable
  • Loading branch information
jimsalterjrs committed Jun 28, 2018
2 parents d335591 + 742db32 commit 2224866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sanoid
Expand Up @@ -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) {
Expand All @@ -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"; }
}
}
}
Expand Down

0 comments on commit 2224866

Please sign in to comment.