[pve-devel] [PATCH_V3] Bug Fix 602

2015-03-05 Thread Wolfgang Link
now zfs will wait 5 sec if error msg is "dataset is busy" Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSPoolPlugin.pm | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 5cbd1b2..999e43

Re: [pve-devel] [PATCH_V3] Bug Fix 602

2015-03-05 Thread Dietmar Maurer
> -run_command($cmd, outfunc => $output, timeout => $timeout); > +run_command($cmd, errmsg => "ERROR", outfunc => $output, timeout => > $timeout); Note: you use "ERROR" here - without collon. > > return $msg; > } > @@ -291,7 +291,26 @@ sub zfs_create_zvol { > sub zfs_delete_zvol

Re: [pve-devel] [PATCH_V3] Bug Fix 602

2015-03-05 Thread Dietmar Maurer
On 03/06/2015 05:57 AM, Dietmar Maurer wrote: So this regex will never match! oh, just saw that the colon is added inside run_command - so just ignore this. + + if ($ret =~ m/.*: dataset is busy.*/){ + + for(my $i = 0; $ret && $i < 5; $i++){ + sleep(1); +