Commit Graph

10 Commits

Author SHA1 Message Date
Karel Zak 4f74ffdbfe blkid: export ID_PART_ENTRY_* variables for udev
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-02-18 16:46:56 +01:00
Karel Zak 4fc5d65bf2 blkid: report open() errors in low-level probing
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-02-16 09:43:26 +01:00
Karel Zak 06b1e27aaf blkid: fix #ifdef HAVE_TERMIO[S]_H
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-02-12 10:32:34 +01:00
Karel Zak f00aae6d7b blkid: add newline when only one value is printed
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-01-27 18:16:06 +01:00
Karel Zak e3d8933aaa blkid: probe for PT, don't probe for FS on small whole-disks
* blkid(8) in low-level mode probes for PT now (blkid is replacement
   for devkit-disks-part-id)

 * add ID_PART_TABLE_TYPE=<name> to blkid(8) udev output

 * don't probe for FS/RAIDs on small devices when PT is detected

Signed-off-by: Karel Zak <kzak@redhat.com>
2010-01-21 00:16:19 +01:00
Karel Zak c54670d564 blkid: add ID_FS_AMBIVALENT for udev output
UI tools that read information from udev need a way how inform users
about ambivalent probing result (more valid filesystems on the
device).

This patch add a new ID_FS_AMBIVALENT variable:

	ID_FS_AMBIVALENT=<info> <info> [ ...]

where <info> is:

	<usage>:<type>[:<version>]

all strings are encoded (white spaces and utf8 are replaced with \hex).

For example:

	# blkid -p -o udev /dev/sda1
	ID_FS_AMBIVALEN=filesystem:vfat:FAT12 other:swap:2

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-11 17:21:36 +01:00
Karel Zak 2d71a92941 blkid: add pretty output, document -L incompatibility with e2fsprogs
... sad story, I have temporary disabled pretty-output code
in very early version of blkid.c in u-l-ng. (It was also in
time when pretty-output was very new feature in e2fsprogs.)

Unfortunately, the -L option (shortcut to "-o list") in u-l-ng version
was reused for for any other functionality few months later.... this
stupid thing was released in u-l-ng 2.15 and 2.16 without any negative
feedback from users.

It means the blkid from u-l-ng is not backwardly compatible with
the original version from e2fsprogs. The -L option has a different
meaning there.

I'm sorry about this bug...

This patch:

  * enable pretty-output (-o line)
  * add a note about incompatibility between u-l-ng and e2fsprogs
    to blkid.8 man page

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-14 02:51:30 +02:00
Karel Zak 7711e2150b blkid: allow to use -s <TAG> for low-level probing (-p mode)
# blkid -p -s TYPE /dev/sda3
 /dev/sda3: TYPE="swap"

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-24 14:44:47 +02:00
Karel Zak 1b780848b0 libblkid: use the new API in whole u-l-ng
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 10:57:24 +02:00
Karel Zak 5663298c2c blkid: move to misc-utils/ directory
The others utilities are in one of the top-level directories. That's
confusing to have blkid(8) and findfs(8) in shlibs/ tree.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-02 14:38:23 +02:00