[dm-devel] [PATCH 6/6] dm-stripe: Fix error message

Mike Snitzer snitzer at redhat.com
Wed Oct 28 22:00:57 UTC 2015


On Wed, Oct 28 2015 at  4:40pm -0400,
Tomohiro Kusumi <kusumi.tomohiro at gmail.com> wrote:

> hi, thanks for your reply.
> 
> I understand what you mean, but that's the reason.
> I happened to use something like below via dmsetup
> 
> --table '0 100 striped 2 4 /dev/xxx 0 /dev/yyy 0'
> 
> and hit this message which is not obvious as long as it says "Target
> length".
> Users have no idea 50/4 was what was really done in kernel space.

You're allowing a very literal look at the code to cloud your perception
of the error and concluding that it is misleading/incorrect.

Just because the code does math in a certain order doesn't change the
fact that the error message is still correct (if/when it is reported).




More information about the dm-devel mailing list