zpool: activate: don't eval procfs read, if it fails it should be fatal
highly unlikely to fail in our setups, most realistic case is when procfs is not mounted at /proc, which breaks much else anyway and is a requirement Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -530,8 +530,7 @@ sub activate_storage {
|
||||
my $pool = ($dataset =~ s!/.*$!!r);
|
||||
|
||||
my $dataset_mounted = sub {
|
||||
my $mounts = eval { PVE::ProcFSTools::parse_proc_mounts() };
|
||||
warn "$@\n" if $@;
|
||||
my $mounts = PVE::ProcFSTools::parse_proc_mounts();
|
||||
foreach my $mp (@$mounts) {
|
||||
my ($what, $dir, $fs) = @$mp;
|
||||
next if $fs ne 'zfs';
|
||||
|
||||
Reference in New Issue
Block a user