[lkml]   [2000]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: usbdevfs mount 2x, umount 1x

On Thu, 30 Nov 2000, Dunlap, Randy wrote:

> Yes, that's how it looks to me also, so maybe it's not a kernel
> problem. Thanks for the tip.
> Here's more info, including the strace that Al Viro asked for.
> I also made sure that I'm using mount & umount version 2.10o.
> Please let me know if you need anything else.

Bug in umount(8) - it (a) is overagressive in pruning the stuff from
/etc/mtab and (b) doesn't even look into /proc/mounts. I bet that
the second time it didn't even call umount(2) - kernel is of no help
here, after all it's not psychic...

The final test: try to do the first umount with -n. If that helps (i.e if
the second umount does the right thing in that case) - that's it,
kernel side is OK. -n tells umount(8) to leave /etc/mtab untouched.
Note: it's _not_ a workaround. umount(8) is doing the wrong thing when
it purges all entries and that needs to be fixed. However, if
umount -n <mountpoint2>;umount <mountpoint1> works we have a proof that
the kernel side is OK and fixing umount(8) will solve the whole problem.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:51    [W:0.051 / U:0.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site