From: Karel Zak Date: Mon, 26 Mar 2012 11:09:27 +0000 (+0200) Subject: docs: mark udev and list blkid(8) output formats deprecated X-Git-Tag: v2.22-rc1~611 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24d741d88a31863e82feb3f3a4516d7df006378b;p=thirdparty%2Futil-linux.git docs: mark udev and list blkid(8) output formats deprecated Signed-off-by: Karel Zak --- diff --git a/Documentation/deprecated.txt b/Documentation/deprecated.txt index cbed7de17f..0d41feb904 100644 --- a/Documentation/deprecated.txt +++ b/Documentation/deprecated.txt @@ -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 diff --git a/misc-utils/blkid.8 b/misc-utils/blkid.8 index c8a31210a9..6bde6bcebd 100644 --- a/misc-utils/blkid.8 +++ b/misc-utils/blkid.8 @@ -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 diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index dfdb8b96b7..1e8073eded 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -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 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 show specified tag(s) (default show all tags)\n" " -t 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"))