From 9440330abadd432306afe397c51c57c97ed23920 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 19 Feb 2021 15:06:20 +0100 Subject: [PATCH] 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 --- PVE/Storage/ZFSPoolPlugin.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index cf63d7c..c734429 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -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'; -- 2.39.2