e2fsprogs/lib/blkid
Eric Sandeen 38361bbbb5 e2fsprogs: fix blkid whole-disk scanning heuristics
The heuristics in blkid/devname.c probe_all() for scanning whole disks
with no partitions assume that a device name with no digit on the end
will always be present as a delineator, i.e.:

sda
sda1
sdb
sdc

In this case, when sdc is seen, it's the clue to go back and scan sdb.
However, for something like:

sda
sda1
sdb
loop0

this falls down, and sdb is never scanned.
(thanks to Karel Zak for pointing this out).

Addresses-Red-Hat-Bugzilla: #400321

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-02 05:25:30 -05:00
..
tests Search the root directory of FAT filesystems for the label information 2005-09-10 21:51:20 -04:00
Makefile.in This patch fixes up an error in the lib/blkid/Makefile.in which was causing 2006-08-19 20:05:28 -04:00
blkid.h Add new function blkid_gc_cache() 2007-05-18 00:02:35 -04:00
blkid.pc.in Add device-mapper support to the blkid library 2006-03-08 14:17:28 -05:00
blkidP.h Add device-mapper support to the blkid library 2006-03-08 14:17:28 -05:00
blkid_types.h.in Fix asm_types.h type conflicts 2006-04-09 08:41:55 -04:00
cache.c Add new function blkid_gc_cache() 2007-05-18 00:02:35 -04:00
dev.c Add a bunch of type fixes for debug/"make check" code paths. 2006-05-30 01:48:51 +02:00
devname.c e2fsprogs: fix blkid whole-disk scanning heuristics 2007-12-02 05:25:30 -05:00
devno.c blkid_devno_to_devname(): Avoid recursive loops due to symlinks in /dev 2006-09-24 22:33:38 -04:00
getsize.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00
libblkid.3.in Update libblkid documentation. 2003-03-01 20:01:27 -05: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 On non-linux systems, use lseek64() if it is present in 2004-09-17 17:47:12 -04:00
probe.c libblkid: recognize squashfs filesystems on BE systems. 2007-10-15 16:23:39 -04:00
probe.h Add more paranoid NTFS probing and fetch UUID and LABEL information 2007-06-19 03:29:47 -04:00
read.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00
resolve.c [VALGRIND] Fix memory leak in libblkid (blkid_get_devname) 2007-03-21 17:15:36 -04:00
save.c Cast time_t variable to long for fprintf to match %ld. 2006-05-30 01:20:46 +02:00
tag.c Fix bug which could cause libblkid to loop forever 2007-07-08 08:50:41 -04:00
test_probe.in Change more "echo -n" to "printf" to avoid screen clutter. 2006-05-30 15:47:05 +02:00
tst_types.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -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