Re: [dm-devel] [PATCH v4 10/11] libmultipath: don't try to set hwhandler if it is retained

2017-06-22 Thread Benjamin Marzinski
On Thu, Jun 22, 2017 at 04:59:12PM +0200, Martin Wilck wrote: > Setting a device handler only works if retain_attached_hw_handler > is 'no', or if the kernel didn't auto-assign a handler. If this > is not the case, don't even attempt to set a different handler. > > This requires reading the sysfs

[dm-devel] [PATCH v4 10/11] libmultipath: don't try to set hwhandler if it is retained

2017-06-22 Thread Martin Wilck
Setting a device handler only works if retain_attached_hw_handler is 'no', or if the kernel didn't auto-assign a handler. If this is not the case, don't even attempt to set a different handler. This requires reading the sysfs "dh_state" path attribute. Signed-off-by: Martin Wilck --- libmultipa