]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: remove optimization from verify( funrtion stable/v2.22
authorKarel Zak <kzak@redhat.com>
Fri, 1 Feb 2013 14:59:58 +0000 (15:59 +0100)
committerKarel Zak <kzak@redhat.com>
Sun, 3 Feb 2013 15:06:38 +0000 (16:06 +0100)
commit2270b1ad90b394950f4fe215eb2fc1042020cef0
treeb9699ab324ead4a462fc15b0c2e372a07c284024
parentc265cc40a8ece740084fbfb3ebd4c1894b3b29b7
libblkid: remove optimization from verify( funrtion

Now libblkid (the cache based part) tries to probe for the cached
filesystem firstly. This optimization is broken, because:

  * new another superblock could be on the device and the original
    is already obsolete
  * we still need to probe for partitions and raids
  * the code was too fragile

The patch also suggests lsblk --fs in blkid.8 for end users. lsblk
read information from used db.

Reported-by: Andreas Hofmeister <andi@collax.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/verify.c
misc-utils/blkid.8