]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: pr_err: more meaningful error message when nr_stripes is invalid
authorEric Wheeler <git@linux.ewheeler.net>
Fri, 19 Aug 2016 03:15:26 +0000 (20:15 -0700)
committerEric Wheeler <git@linux.ewheeler.net>
Fri, 19 Aug 2016 03:31:03 +0000 (20:31 -0700)
commit5b98d9ab9fe7c69ac9252eb9b6ba28142f8bb42a
tree8eb365d5bbb95058e0180dbb1a819dc965b74103
parentf45e3e85dec51d5594dd463e26befb1533da0002
bcache: pr_err: more meaningful error message when nr_stripes is invalid

The original error was thought to be corruption, but was actually caused by:
make-bcache --data-offset N
where N was in bytes and should have been in sectors.  While userspace
tools should be updated to check --data-offset beyond end of volume,
hopefully this will help others that might not have noticed the units.

Signed-off-by: Eric Wheeler <bcache@linux.ewheeler.net>
Cc: Kent Overstreet <kent.overstreet@gmail.com>
drivers/md/bcache/super.c