]> www.infradead.org Git - mtd-utils.git/commitdiff
mtdinfo: deprecate the -m option
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 7 Jun 2011 07:36:26 +0000 (10:36 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 7 Jun 2011 07:36:26 +0000 (10:36 +0300)
... because mtd device node name do not have to follow the "/dev/mtd%d"
pattern.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
feature-removal-schedule.txt
ubi-utils/src/mtdinfo.c

index 30f0403ce19256a00151e218124219dfcd620a08..6e2bfc921f2085e64bc5b89d308b0c15f6fc99c0 100644 (file)
@@ -20,11 +20,16 @@ neither --squash-rino-perm nor --nosquash-rino-perm were used,
 mkfs.ubifs printed a warning. This was introduced in mtd-utils-1.4.0 (13 Sep 2010).
 
 Now we have removed a warning and made --nosquash-rino-perm to be the
-default. Also, both options are declared depricated, so users should try
+default. Also, both options are declared deprecated, so users should try
 to stop using them.
 
 The further step is to remove both of them.
 
 ---------------------------
-2.
+2. Kill -m parameter of mtdinfo
+
+We cannot assume that mtd device names follow the "/dev/mtd%d" pattern,
+because it is up to udev rules to name the devices. So we are removing
+the -m option. For now, we just have a warning, but the option will be
+removed in release 1.4.6.
 ---------------------------
index c9f6f589500d8bce8cda05e9a9c9b7428d4bcee9..820c16d19b677439311d808e591a1105b70c97c8 100644 (file)
@@ -56,6 +56,7 @@ static const char doc[] = PROGRAM_NAME " version " PROGRAM_VERSION
 
 static const char optionsstr[] =
 "-m, --mtdn=<MTD device number>  MTD device number to get information about\n"
+"                                (deprecated option, will be removed, do not use)\n"
 "-u, --ubi-info                  print what would UBI layout be if it was put\n"
 "                                on this MTD device\n"
 "-a, --all                       print information about all MTD devices\n"
@@ -106,7 +107,7 @@ static int parse_opt(int argc, char * const argv[])
                        args.mtdn = simple_strtoul(optarg, &error);
                        if (error || args.mtdn < 0)
                                return errmsg("bad MTD device number: \"%s\"", optarg);
-
+                       warnmsg("-m/--mtdn is depecated, will be removed in mtd-utils-1.4.6");
                        break;
 
                case 'h':