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>
my $pool = ($dataset =~ s!/.*$!!r);
my $dataset_mounted = sub {
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';
foreach my $mp (@$mounts) {
my ($what, $dir, $fs) = @$mp;
next if $fs ne 'zfs';