diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-06-22 09:49:20 -0700 |
---|---|---|
committer | Artem Bityutskiy <dedekind1@gmail.com> | 2011-06-23 17:57:55 +0300 |
commit | 2055285d28b036a81f92bbbed92d06f926d779cb (patch) | |
tree | 87233e112b8d42b9d7bd8e72841600ae38d91b06 | |
parent | 2145463588aead7a77164a4cc46574af9c9f078f (diff) |
nanddump: warn about new default BB handling
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>
-rw-r--r-- | nanddump.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |