[pve-devel] [RFC pve-container] vzdump: don't unmount filesystems with -mode suspend

Dietmar Maurer dietmar at proxmox.com
Thu Sep 17 08:08:27 CEST 2015


Wouldn't it be easier to simply use:

if ($task->{mode} ne 'snapshot') {

?

On 09/16/2015 03:24 PM, Wolfgang Bumiller wrote:
> +    if (!$task->{no_unmount}) {
> +	my $rootdir = $default_mount_point;
> +	my $disks = $task->{disks};
> +	foreach my $disk (reverse @$disks) {
> +	    PVE::Tools::run_command(['umount', '-l', '-d', $disk->{dir}]) if $disk->{dir};
> +	}




More information about the pve-devel mailing list