]> git.proxmox.com Git - pve-storage.git/commitdiff
zpool: activate: don't eval procfs read, if it fails it should be fatal
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Feb 2021 14:06:20 +0000 (15:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Feb 2021 14:06:22 +0000 (15:06 +0100)
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>
PVE/Storage/ZFSPoolPlugin.pm

index cf63d7caf07286c2c989c1b74e8d6768cb791032..c734429f93433456a62b83002e8cbedb46db5bfe 100644 (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';