[pve-devel] how does errfunc in run_command exactly work?
Stefan Priebe - Profihost AG
s.priebe at profihost.ag
Fri May 31 09:34:53 CEST 2013
Am 31.05.2013 09:32, schrieb Dietmar Maurer:
>> Is it correct to fix it this way:
>> run_command($cmd, errmsg => "rbd snapshot $volname to $snap' error",
>> errfunc => sub { print STDERR shift; });
>
>
> looks reasonable - but you need to test that.
>
Yes i already did it and it worked fine.
I sent a patch.
Stefan
More information about the pve-devel
mailing list