]> www.infradead.org Git - mtd-utils.git/commitdiff
nanddump: warn about new default BB handling
authorBrian Norris <computersforpeace@gmail.com>
Wed, 22 Jun 2011 16:49:20 +0000 (09:49 -0700)
committerArtem Bityutskiy <dedekind1@gmail.com>
Thu, 23 Jun 2011 14:57:55 +0000 (17:57 +0300)
In an upcoming release, we will no longer default to --bb=padbad. Instead,
the default will be --bb=skipbad. This makes nanddump a better inverse
operation to nandwrite.

This patch prints warnings for users so that they get a chance to update
their scripts before the default changes officially.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
nanddump.c

index 103ad063d1fa5c71ce8cd328ea23d0cc5c7c6436..b6307cf51144420b65a41e39e97cc4ac31b9c0a9 100644 (file)
@@ -249,6 +249,11 @@ static void process_options(int argc, char * const argv[])
                exit(EXIT_FAILURE);
        }
 
+       if (bb_default)
+               warnmsg("you did not specify a default bad-block handling\n"
+                       "  method. In future versions, the default will change to\n"
+                       "  --bb=skipbad. Use \"nanddump --help\" for more information.");
+
        if ((argc - optind) != 1 || error)
                display_help();