How to reproduce:
mount /dev/sda1 sda1
mount --bind sda1 test
umount -n test (-n = without writing to mtab)
umount test
Excepted:
I'd excepted that the last command write an error and/or fix the /etc/mtab
BUT..
it remove the record from /etc/mtab about the bind (it's ok), but it also umount
the /dev/sda1 from sda1 (and this record will _not_ remove from mtab)
Strange!
please note, that the "umount -n" is here used for simulation, but there are
number of ways, how to fall into this problem in real life.
OpenVZ, chroot, readonly fs, ..
tested on some versions util-linux <=2.14.2 (lates stable on Gentoo)
on i386
Pavel Riha
--
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