]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fsck: use less aggressive method to detect mounted devices
authorKarel Zak <kzak@redhat.com>
Fri, 24 Aug 2012 16:41:50 +0000 (18:41 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Aug 2012 17:20:33 +0000 (19:20 +0200)
commit7a4f98854283a5b98e76902b12685ad1999b2802
tree8b2afecd06f6595d79145e7c60561709bd0fa76e
parent975e14bd4abaf5635ce0783f3ecddb87449cc05a
fsck: use less aggressive method to detect mounted devices

We should not care about mountpoints in fsck if a device name
specified on command line, just check if the device is used somewhere
in /proc/self/mountinfo file.

Crazy people who use

fsck /mountpoint

have to specify the mountpoint by the same format as in their fstab --
symlinks canonicalization is not supported.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=850965
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.c