]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: remove optimization from verify( funrtion
authorKarel Zak <kzak@redhat.com>
Fri, 1 Feb 2013 14:59:58 +0000 (15:59 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 1 Feb 2013 14:59:58 +0000 (15:59 +0100)
commit6a0766444dc4f1b23b1f0da9c380fb1ced0bfb0a
tree5eeedd7a2849384809efbffe14f5a1329cd1570b
parentb548a8c9895a36bd238fcdca103a1f24aa99bcbf
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