Skip CD mounts

This commit is contained in:
Jamie Cameron
2018-08-21 20:46:53 -07:00
parent 540349d89e
commit 4b2dae014c

View File

@@ -352,6 +352,10 @@ foreach my $m (@mounted) {
# Skip /snap mounts
next;
}
if ($m->[1] =~ /^\/dev\/sr/) {
# Skip CDs
next;
}
# Get the size - for ZFS mounts, this comes from the underlying
# total pool size and free
my ($t, $f);