]> err.no Git - util-linux/commit
blkis: fix detection of ext4dev as ext4
authorEric Sandeen <sandeen@redhat.com>
Mon, 8 Dec 2008 14:28:49 +0000 (15:28 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:21:50 +0000 (23:21 +0100)
commit7c168d1ff80c2753e5187e90d34f53f3526afa1d
treef312e10c84a53321871270607e950533c4f68a7e
parent83e0898a507e75b31c3ca405360cf76e8ac8eeb1
blkis: fix detection of ext4dev as ext4

If only ext4 is available (as a module or in /proc/filesystems)
blkid wasn't properly testing for it, because the time checks
were backwards and always failed.  This caused old ext4dev
filesystems to fail to mount as ext4.  With this patch it works
fine.

Also, don't try to check for modules on a non-Linux system.

[kzak@redhat.com: port from e2fsprogs to util-linux-ng tree]

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/probe.c
libs/blkid/src/probers/ext.c