Comment 4 for bug 2765

Revision history for this message
Kåre Hviid (ukh) wrote :

This will happen if you have a live filesystem mounted on say /dev/hda,
which is quite reasonable. Also, during "scanbus", it appears libscg
expects to be able to open all devices. A quick'n'dirty approach to this
might be to only attempt sg_open_excl in the "openbydev" code paths and
avoid it in the device scans, but that isn't very clever.

Another way to go about it, which really isn't too good either, is to
relax sg_open_excl() a little. A proper solution should probably make either sg_open_excl() and/or libscg a bit more intelligent.

Since I'm unable to attach patches in this forum I have sent one that
appears to fix this issue for now by mail directly to Michael Vogt.