Well, in recent versions of e2fsprogs it prefers to check /proc/mounts
over /etc/mtab to determine if a device is in-use, because the latter
can be incorrect after a crash, and the root filesystem is read-only at
this time.  There was recently a bug report about this from Slackware
users, where fsck is run on all of the filesystems before root is
remounted rw.  As a result, there is now even extra checking to see if
the devno of the mountpoint == devno of the device, otherwise it assumes
the /etc/mtab entry is bogus.
On most other systems, root is remounted rw before non-root filesystems
are checked, and /etc/mtab could be assumed to be correct, but it will
never be checked if /proc/mounts exists.
Cheers, Andreas
--
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/