summaryrefslogtreecommitdiffstats
path: root/misc-utils/blkid.8
diff options
context:
space:
mode:
authorKarel Zak2013-02-01 15:59:58 +0100
committerKarel Zak2013-02-01 15:59:58 +0100
commit6a0766444dc4f1b23b1f0da9c380fb1ced0bfb0a (patch)
tree5eeedd7a2849384809efbffe14f5a1329cd1570b /misc-utils/blkid.8
parenttextual: improve an error message and a help text (diff)
downloadkernel-qcow2-util-linux-6a0766444dc4f1b23b1f0da9c380fb1ced0bfb0a.tar.gz
kernel-qcow2-util-linux-6a0766444dc4f1b23b1f0da9c380fb1ced0bfb0a.tar.xz
kernel-qcow2-util-linux-6a0766444dc4f1b23b1f0da9c380fb1ced0bfb0a.zip
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>
Diffstat (limited to 'misc-utils/blkid.8')
-rw-r--r--misc-utils/blkid.811
1 files changed, 11 insertions, 0 deletions
diff --git a/misc-utils/blkid.8 b/misc-utils/blkid.8
index 6ba3bd002..46caabd27 100644
--- a/misc-utils/blkid.8
+++ b/misc-utils/blkid.8
@@ -64,6 +64,17 @@ library. It can determine the type of content (e.g. filesystem or swap)
that a block device holds, and also attributes (tokens, NAME=value pairs)
from the content metadata (e.g. LABEL or UUID fields).
.PP
+Note that
+.B blkid
+reads information directly from devices and for non-root users
+it returns cached unverified information. It's better to use
+.B lsblk --fs
+to get user-friendly overview about filesystems and devices.
+.BR lsblk (8)
+is also easy to use in scripts.
+.B blkid
+is mostly designed for system services and to test libblkid functionality.
+.PP
.B blkid
has two main forms of operation: either searching for a device with a
specific NAME=value pair, or displaying NAME=value pairs for one or