>                   } else {
> -                     PVE::Tools::run_command(['e2fsck', '-f', '-y', $path]);
> -                     PVE::Tools::run_command(['resize2fs', $path]);
> +                     eval {
> +                         PVE::Tools::run_command(['e2fsck', '-f', '-y', 
> $path]);
> +                         PVE::Tools::run_command(['resize2fs', $path]);
> +                     };
>                   }
> +                 warn "Failed to update the container's filesystem: $@\n";

looks strange to me - what if there is no error ($@ can be undefined)?

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to