[dm-devel] [PATCH]multipath: Wrong sysfs attribute used for iSCSI settings.
Christophe Varoqui
christophe.varoqui at opensvc.com
Thu Jul 24 08:33:19 UTC 2014
Applied,
Thanks.
On Sat, Jun 21, 2014 at 12:33 AM, Merla, ShivaKrishna <
ShivaKrishna.Merla at netapp.com> wrote:
> Wrong sysfs parameter used to configure iSCSI settings.
>
> /sys/class/iscsi_session/session<n>/tgtname
> It's always
> /sys/class/iscsi_session/session<n>/targetname
>
> This is the reason recovery_tmo was not getting set to
> fast_io_fail_tmo value for iscsi sessions.
>
> Signed-off-by: Shiva Krishna Merla<shivakrishna.merla at netapp.com>
> ---
> libmultipath/discovery.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
> index 786e1de..7bb0a33 100644
> --- a/libmultipath/discovery.c
> +++ b/libmultipath/discovery.c
> @@ -289,7 +289,7 @@ sysfs_get_tgt_nodename (struct path *pp, char * node)
> if (tgtdev) {
> const char *value;
>
> - value = udev_device_get_sysattr_value(tgtdev,
> "tgtname");
> + value = udev_device_get_sysattr_value(tgtdev,
> "targetname");
> if (value) {
> pp->sg_id.proto_id = SCSI_PROTOCOL_ISCSI;
> pp->sg_id.transport_id = tgtid;
> --
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20140724/0ba34caf/attachment.htm>
More information about the dm-devel
mailing list