fdisk: mark -s option as deprecated
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
5b72b3dd8e
commit
9564e46ce2
|
@ -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
|
deprecated utils are in maintenance mode and we keep them in source tree for
|
||||||
backward compatibility only.
|
backward compatibility only.
|
||||||
|
|
||||||
|
What: fdisk -s <device>
|
||||||
|
Why: this does not belong to fdisk, use "blockdev --getsz"
|
||||||
|
|
||||||
|
--------------------------
|
||||||
|
|
||||||
What: 'udev' and 'list' blkid(8) output formats
|
What: 'udev' and 'list' blkid(8) output formats
|
||||||
Why: udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
|
Why: udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
|
||||||
|
|
||||||
|
|
|
@ -225,7 +225,9 @@ If no devices are given, those mentioned in
|
||||||
(if that exists) are used.
|
(if that exists) are used.
|
||||||
.TP
|
.TP
|
||||||
.BI "\-s " partition...
|
.BI "\-s " partition...
|
||||||
Print the size (in blocks) of each given partition.
|
Print the size (in blocks) of each given partition. This option is DEPRECATED
|
||||||
|
in favour of
|
||||||
|
.B blockdev (1).
|
||||||
.TP
|
.TP
|
||||||
.BI "\-u"[=unit]
|
.BI "\-u"[=unit]
|
||||||
When listing partition tables, show sizes in 'sectors' or in 'cylinders'. The
|
When listing partition tables, show sizes in 'sectors' or in 'cylinders'. The
|
||||||
|
|
|
@ -53,7 +53,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
|
||||||
fprintf(out,
|
fprintf(out,
|
||||||
_(" %1$s [options] <disk> change partition table\n"
|
_(" %1$s [options] <disk> change partition table\n"
|
||||||
" %1$s [options] -l <disk> list partition table(s)\n"
|
" %1$s [options] -l <disk> list partition table(s)\n"
|
||||||
" %1$s -s <partition> give partition size(s) in blocks\n"),
|
" %1$s -s <partition> give partition size(s) in blocks (deprecated)\n"),
|
||||||
program_invocation_short_name);
|
program_invocation_short_name);
|
||||||
|
|
||||||
fputs(USAGE_OPTIONS, out);
|
fputs(USAGE_OPTIONS, out);
|
||||||
|
@ -451,6 +451,7 @@ int main(int argc, char **argv)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ACT_SHOWSIZE:
|
case ACT_SHOWSIZE:
|
||||||
|
/* deprecated */
|
||||||
if (argc - optind <= 0)
|
if (argc - optind <= 0)
|
||||||
usage(stderr);
|
usage(stderr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue