[pve-devel] [PATCH] zfs: fix wait by alloc_image
Dietmar Maurer
dietmar at proxmox.com
Wed Jan 28 10:10:52 CET 2015
> diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm
> index 10da7f7..ed10484 100644
> --- a/PVE/Storage/ZFSPoolPlugin.pm
> +++ b/PVE/Storage/ZFSPoolPlugin.pm
> @@ -185,6 +185,13 @@ sub alloc_image {
>
> $class->zfs_create_zvol($scfg, $name, $size);
>
> + run_command ("udevadm trigger --subsystem-match block");
> + run_command ("udevadm settle --timeout 5");
Oh, we cannot do that, because ZFSPluging is also using this method:
sub alloc_image {
my ($class, $storeid, $scfg, $vmid, $fmt, $name, $size) = @_;
my $volname = $class->SUPER::alloc_image($storeid, $scfg, $vmid, $fmt,
$name, $size);
More information about the pve-devel
mailing list