mirror of https://github.com/jimsalterjrs/sanoid
get snpshots from list of datasets
query the existing snapshots only from the configured datasets to avoud spinning up disks that are not in the config
This commit is contained in:
parent
940a84e21f
commit
510becee2f
3
sanoid
3
sanoid
|
|
@ -883,7 +883,8 @@ sub getsnaps {
|
||||||
print "INFO: cache expired - updating from zfs list.\n";
|
print "INFO: cache expired - updating from zfs list.\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
open FH, "$zfs get -Hrpt snapshot creation |";
|
# just get snapshots from configured datasets to not spin up the disks
|
||||||
|
open FH, "$zfs get -Hrpt snapshot creation ".join(" ",keys %$config)." |";
|
||||||
@rawsnaps = <FH>;
|
@rawsnaps = <FH>;
|
||||||
close FH;
|
close FH;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue