]> git.baikalelectronics.ru Git - kernel.git/commit
dm mpath: return parameter error
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 21 Jul 2008 11:00:30 +0000 (12:00 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 21 Jul 2008 11:00:30 +0000 (12:00 +0100)
commitbac79dd0ca01212e4da3389094450025f5390db4
treee9879aecb1403f89ec1a6d37d2608dd9bf51e2ef
parent270480d7d29a5cba78ab54fb0b35e6d9b8069a04
dm mpath: return parameter error

Return a specific error message if there are an invalid number of multipath
arguments.

This invalid command returns an "Unknown error" because the ti->error field is
not set

dmsetup create --table '0 2 multipath 0 0 1 1 round-robin 0 1 1 /dev/sdh' mpath0

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c