Bug #11043
lofiadm -la still fails after 10215
Start date:
2019-05-16
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
This is a bit odd; it is still possible we can get non-labeled lofi entry from device name cache, so we need to check the name and keep waiting if the name type is wrong (till we hit timeout).
Increase the timeout from 30 to 120 (because lofiadm is waiting for devfsadm symlinks for 120s), and add cv_broadcast to notify about device removal.
Testing done: did loop lofiadm -a, -d -la -d sequence 100 times, observed with dtrace that indeed, we sometimes do get /dev/rlofi entries, but lofiadm did not error out any more.
Related issues
Updated by Electric Monk over 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit 9a1bf7f04367a515abcd994451b0991d73dc3148
commit 9a1bf7f04367a515abcd994451b0991d73dc3148 Author: Toomas Soome <tsoome@me.com> Date: 2019-05-22T15:18:50.000Z 11043 lofiadm -la still fails after 10215 Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Alexander Pyhalov <apyhalov@gmail.com> Reviewed by: Andy Fiddaman <af@citrus-it.net> Approved by: Gordon Ross <gwr@nexenta.com>
Updated by Andy Fiddaman over 1 year ago
- Related to Bug #11072: Deadlock in lofi after 11043 added