]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: mark -s option as deprecated
authorKarel Zak <kzak@redhat.com>
Fri, 30 Aug 2013 11:34:16 +0000 (13:34 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:47:08 +0000 (16:47 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
Documentation/deprecated.txt
fdisks/fdisk.8
fdisks/fdisk.c

index 9a21980145a5a3e0b5b9615a2161b622c17e04b3..5113594ac9b8a9cc5612ac6602ab653e12e839a2 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:   fdisk -s <device>
+Why:    this does not belong to fdisk, use "blockdev --getsz"
+
+--------------------------
+
 What:   'udev' and 'list' blkid(8) output formats
 Why:    udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
 
index 9e81eb23ca4efdaf761e58e3bf79ce8e74dca267..439f0f62f4a0decac11ed5875fe96317e93bd481 100644 (file)
@@ -225,7 +225,9 @@ If no devices are given, those mentioned in
 (if that exists) are used.
 .TP
 .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
 .BI "\-u"[=unit]
 When listing partition tables, show sizes in 'sectors' or in 'cylinders'.  The
index 36d426611c244f9e7c3675a30af9ce7375545d4f..905aaa1931778b348257fb98a9aa17f1a5da456c 100644 (file)
@@ -53,7 +53,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
        fprintf(out,
              _(" %1$s [options] <disk>    change partition table\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);
 
        fputs(USAGE_OPTIONS, out);
@@ -451,6 +451,7 @@ int main(int argc, char **argv)
                break;
 
        case ACT_SHOWSIZE:
+               /* deprecated */
                if (argc - optind <= 0)
                        usage(stderr);