]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit01460f3520c100010aacc8f8500cafcb17ce4665
tree9f883266f2b0623a876635746d8e2cf7a136a6fc
parent3fa8749e584b55f1180411ab1b51117190bac1e5
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