]> err.no Git - util-linux/commit
umount: check for overlaid mounts
authorGuan Xin <guanx.bac@gmail.com>
Mon, 29 Sep 2008 09:38:06 +0000 (11:38 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 29 Sep 2008 09:38:06 +0000 (11:38 +0200)
commit992283e8e49d941069973832e166eacb8ea6cf6c
treed9498e0fae682ff347c1b313f55a761168c9480c
parent6a0fbe22165409019ea6ddf14e651ba2391af3a2
umount: check for overlaid mounts

Linux cannot umount a device whose mount point is hidden by subsequent
mount(s). i.e. We must umount the devices associated to a mount point
in the reverse order of when they were mounted.  If umount was called
violating this rule, report error and exit.

Signed-off-by: Guan Xin <guanx.bac@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/umount.c