e2fsprogs/lib/blkid
Eric Sandeen 9e7da0bdc1 blkid: recognize ext3 with test_fs set as ext3
It seems that if we have the test_filesystem flag set on an ext3
filesystem(!) on a system which provides ext4, blkid gets confused.

According to the current logic:

* It's not an ext4dev filesystem, because the system provides ext4.
* It's not an ext4 filesystem, because it has no ext4 features.
* It's not an ext3 filesystem, because the test flag is set.

In the end, it's nothing.

blkid should return *something* that is mountable... I'm inclined to
think that ext3 should be the right answer, if no ext4-specific features
are set.

This would mean just dropping the EXT2_FLAGS_TEST_FILESYS test in
probe_ext3(), because ext4 & ext4dev probes have come first already.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-10-18 17:19:56 -04:00
..
tests Add ZFS test image to blkid test suite 2008-07-07 15:13:09 -04:00
Makefile.in Remove use of devmapper library by the blkid library 2008-08-26 23:56:00 -04:00
blkid.h Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
blkid.pc.in Fix pkg-config files: use Requires.private and fix the include directory 2008-09-02 21:20:44 -04:00
blkidP.h libblkid: Unexport the private symbol blkid_devdirs 2008-08-27 00:00:44 -04:00
blkid_types.h.in Fix asm_types.h type conflicts 2006-04-09 08:41:55 -04:00
cache.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
dev.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
devname.c libblkid: Refuse to create a device structure for a non-existent device 2008-10-18 16:47:46 -04:00
devno.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
getsize.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
libblkid.3.in libblkid: On the man page, replace empty references with an existing one. 2008-08-14 13:31:37 -04:00
list.h Fix up lots of portability problems that caused e2fsprogs not to build successfully 2003-03-06 11:09:18 -05:00
llseek.c Use lseek() instead of llseek() of sizeof(long) == sizeof(long long) 2008-01-27 00:35:32 -05:00
probe.c blkid: recognize ext3 with test_fs set as ext3 2008-10-18 17:19:56 -04:00
probe.h Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
read.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
resolve.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
save.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
tag.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
test_probe.in blkid: Make regression test tolerate older versions of mkswap 2008-07-10 08:52:50 -04:00
tst_types.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
version.c Add functions which allow an application program to do a run-time query 2005-01-26 13:16:06 -05:00