lofiadm -la still fails after 10215
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.
Updated by Electric Monk over 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 9a1bf7f04367a515abcd994451b0991d73dc3148 Author: Toomas Soome <email@example.com> Date: 2019-05-22T15:18:50.000Z 11043 lofiadm -la still fails after 10215 Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Reviewed by: Alexander Pyhalov <email@example.com> Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Approved by: Gordon Ross <email@example.com>