]> git.baikalelectronics.ru Git - kernel.git/commit
dm mpath: use more error codes
authorBenjamin Marzinski <bmarzins@redhat.com>
Fri, 10 Oct 2008 12:36:57 +0000 (13:36 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 Oct 2008 12:36:57 +0000 (13:36 +0100)
commit102285f36b215d78c652ce6d33bab0756ef23313
tree9f883266f2b0623a876635746d8e2cf7a136a6fc
parentf98558d0618c968f68d02d08b26f729411dede3d
dm mpath: use more error codes

This patch allows path errors from the multipath ctr function to
propagate up to userspace as errno values from the ioctl() call.

This is in response to
  https://www.redhat.com/archives/dm-devel/2008-May/msg00000.html
and
  https://bugzilla.redhat.com/show_bug.cgi?id=444421

The patch only lets through the errors that it needs to in order to
get the path errors from parse_path().

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c