mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
81a9da8f61
Fix regression introduced with commit: 2fc126b00d83991c6a2f3ed9aa61457294a4c45e This commit has moved pv_min_size() test in front of device_is_usable(). However pv_min_size needs to open device, so it may have actually get blocked. So restore the original order and first validate dm device to be usable for open. It's worth to note that such check is not 'race-free', but it usually eliminates 99.99% of problems ;).