commit | 3a42fe220c301c8b9a8df595938c9a923cf5c494 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Thu Oct 31 13:23:37 2002 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Oct 31 13:23:37 2002 -0500 |
tree | db8b4f7c047a156ac0fc90c1e0d11ac11d37aa1c | |
parent | 55ca9ae5ecc5968e272e900b3e6e815fdeae683b [diff] |
ismounted.c (check_mntent, check_mntent_file): Add better support for loopback-mounted filesystems. Check /etc/mtab if /proc/mounts doesn't turn up any mount flags, since /etc/mtab has the loopback image filename, instead of /dev/loop0. Also, check based on st_dev and st_ino, so that if a relative pathname or a pathnames using symbolic links are used, we can detect the the filesystem correctly in those cases. (Addresses Sourceforge bug #619119)