]> git.proxmox.com Git - pve-storage.git/commit
fix #1691: replace udev check
authorWolfgang Link <w.link@proxmox.com>
Thu, 19 Apr 2018 06:39:50 +0000 (08:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 May 2018 10:01:20 +0000 (12:01 +0200)
commit894b9ecc1e251facb2f05d74e41807a366eb45f0
tree7de08c4da21ecb6ad6c14b488696297ffc4e1b62
parent32ad421e34e565dcbcbbcbc799849180bfb27449
fix #1691: replace udev check

`zfs create` add the creation job in a worker queue,
which should normally execute instantly. But there are circumstances
where the job will take a while to get processed.
If this is the case udev settle will see no dev in the queue and the program
will continue without an allocated dev.

The busy waiting is not best practice but the only way to be sure,
that the block device exists.
PVE/Storage/ZFSPoolPlugin.pm