dmsetup info on the device has the open count, but I don't know
whether it's better to poll that, or just try to remove/close the
device over and over until it succeeds.

Unfortunately, dmsetup wait does not seem to be useful as the event
counter is not affected by oepn/close. There is no function in
dmsetup to lazy-remove. See #542778.

-- 
 .''`.   martin f. krafft <madd...@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to