[pve-devel] [PATCH] Bug Fix 602

Dietmar Maurer dietmar at proxmox.com
Thu Feb 26 13:02:09 CET 2015


> -    $class->zfs_request($scfg, undef, 'destroy', '-r',
> "$scfg->{pool}/$zvol");
> +    open(STDERR, ">/tmp/zfslog.txt");
> +    eval {  $class->zfs_request($scfg, undef, 'destroy', '-r',
> "$scfg->{pool}/$zvol")};
> +    close STDERR;

We have special hooks in run_command to catch stderr.

So please catch this in zfs_request, using 'errfunc' ...




More information about the pve-devel mailing list