Hi Karel, Karel Zak <kzak@xxxxxxxxxx> writes: > On Wed, Jun 25, 2008 at 12:59:32PM +0200, Matthias Koenig wrote: >> The new loop auto-destruct feature detaches automatically loop devices >> when no longer used. This means they are detached with the umount() >> call. But when we call umount with -d, del_loop is called and fails >> because the ioctl() returns ENXIO. > > ah, good catch. Thanks! > >> We probably should ignore this error here. > > I think we could be smarter. We can try to detect autoclear > loop devices. See the patch below. Yeah, this really looks better. Thanks, Matthias -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html