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:
Thomas Lamprecht
2021-02-19 15:06:20 +01:00
parent 5b715fd984
commit 9440330aba

View File

@ -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';