]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
docs: mark udev and list blkid(8) output formats deprecated
authorKarel Zak <kzak@redhat.com>
Mon, 26 Mar 2012 11:09:27 +0000 (13:09 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 26 Mar 2012 11:09:27 +0000 (13:09 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
Documentation/deprecated.txt
misc-utils/blkid.8
misc-utils/blkid.c

index cbed7de17fa7264139866f1b9c96de696ced2c9d..0d41feb904b59be4f86aaa7a47533ee5c7d08f0e 100644 (file)
@@ -2,6 +2,11 @@ The following is a list of commands or features that are deprecated.  All
 deprecated utils are in maintenance mode and we keep them in source tree for
 backward compatibility only.
 
+What:   'udev' and 'list' blkid(8) output formats
+Why:    udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
+
+--------------------------
+
 What:   line(1) command
 Why:    useless, nobody uses this command, head(1) is better
 
index c8a31210a9dafe795ed53c143ebb83ae897d36c6..6bde6bcebd0a130d95253b2314bf16d2fa66d6c1 100644 (file)
@@ -156,7 +156,10 @@ print the value of the tags
 .TP
 .B list
 print the devices in a user-friendly format; this output format is unsupported
-for low-level probing (\fB-p\fR or \fB-i\fR)
+for low-level probing (\fB-p\fR or \fB-i\fR). This output format is \fBDEPRECATED\fR
+in favour of
+.BR lsblk (8)
+command.
 .TP
 .B device
 print the device name only; this output format is always enabled for \fB-L\fR
@@ -168,7 +171,7 @@ prefixed by ID_FS_ or ID_PART_ prefixes
 
 The udev output returns the ID_FS_AMBIVALENT tag if more superblocks are detected,
 and ID_PART_ENTRY_* tags are always returned for all partitions including empty
-partitions.
+partitions. This output format is \fBDEPRECATED\fR.
 .TP
 .B export
 print key=value pairs for easy import into the environment; this output format
index dfdb8b96b7186d68d90dbdf67f919de5a6495ca0..1e8073eded65add56960576719d50ffb063b9407 100644 (file)
@@ -31,8 +31,8 @@ extern int optind;
 
 #define OUTPUT_VALUE_ONLY      (1 << 1)
 #define OUTPUT_DEVICE_ONLY     (1 << 2)
-#define OUTPUT_PRETTY_LIST     (1 << 3)
-#define OUTPUT_UDEV_LIST       (1 << 4)
+#define OUTPUT_PRETTY_LIST     (1 << 3)                /* deprecated */
+#define OUTPUT_UDEV_LIST       (1 << 4)                /* deprecated */
 #define OUTPUT_EXPORT_LIST     (1 << 5)
 
 #define LOWPROBE_TOPOLOGY      (1 << 1)
@@ -73,7 +73,7 @@ static void usage(int error)
                " -h          print this usage message and exit\n"
                " -g          garbage collect the blkid cache\n"
                " -o <format> output format; can be one of:\n"
-               "               value, device, list, udev, export or full; (default: full)\n"
+               "               value, device, export or full; (default: full)\n"
                " -k          list all known filesystems/RAIDs and exit\n"
                " -s <tag>    show specified tag(s) (default show all tags)\n"
                " -t <token>  find device with a specific token (NAME=value pair)\n"
@@ -749,7 +749,7 @@ int main(int argc, char **argv)
                        else if (!strcmp(optarg, "device"))
                                output_format = OUTPUT_DEVICE_ONLY;
                        else if (!strcmp(optarg, "list"))
-                               output_format = OUTPUT_PRETTY_LIST;
+                               output_format = OUTPUT_PRETTY_LIST;     /* deprecated */
                        else if (!strcmp(optarg, "udev"))
                                output_format = OUTPUT_UDEV_LIST;
                        else if (!strcmp(optarg, "export"))