package PVE::CLI::pct;
-
+
use strict;
use warnings;
use PVE::API2::LXC::Status;
use PVE::API2::LXC::Snapshot;
-use Data::Dumper;
-
use base qw(PVE::CLIHandler);
my $nodename = PVE::INotify::nodename();
my $storecfg = PVE::Storage::config();
my $conf = PVE::LXC::Config->set_lock($vmid, 'fstrim');
- PVE::LXC::mount_all($vmid, $storecfg, $conf);
eval {
my $path = "";
+ PVE::LXC::mount_all($vmid, $storecfg, $conf);
PVE::LXC::Config->foreach_mountpoint($conf, sub {
my ($name, $mp) = @_;
$path = $mp->{mp};
PVE::Tools::run_command($cmd);
});
};
+ warn $@ if $@;
PVE::LXC::umount_all($vmid, $storecfg, $conf, 0);
PVE::LXC::Config->remove_lock($vmid, 'fstrim');