From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe Varoqui Subject: Re: [PATCH 0/3] sysfs prioritizer Date: Fri, 22 Jul 2016 11:44:01 +0200 Message-ID: References: <1468565337-5178-1-git-send-email-hare@suse.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4279678895724952360==" Return-path: In-Reply-To: <1468565337-5178-1-git-send-email-hare@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Hannes Reinecke Cc: device-mapper development List-Id: dm-devel.ids --===============4279678895724952360== Content-Type: multipart/alternative; boundary=001a1140211e44565405383646c8 --001a1140211e44565405383646c8 Content-Type: text/plain; charset=UTF-8 Finally merged. Thanks. On Fri, Jul 15, 2016 at 8:48 AM, Hannes Reinecke wrote: > Hi all, > > this is a resend of a previous patchset for adding a 'sysfs' > prioritizer. This prioritizer uses the sysfs attributes > 'access_state' and 'exclusive_pref_bit' to generate the > path priority. > Priority values are identical to those from the 'alua' > prioritizer. > > Note: the mentioned sysfs attributes are filled in by > every device handler, but only the 'alua' handler has > enough logic to keep them up-to-date. > So use with caution for other device handlers. > > Hannes Reinecke (3): > libmultipath: call get_vpd_uid() if no uid_attribute is set > alua prioritizer: Fix typo 'perf' > multipathd: Add 'sysfs' prioritizer > > libmultipath/discovery.c | 36 ++++++++++++++++++++++ > libmultipath/discovery.h | 2 ++ > libmultipath/prio.h | 1 + > libmultipath/prioritizers/Makefile | 3 +- > libmultipath/prioritizers/alua.c | 8 ++--- > libmultipath/prioritizers/sysfs.c | 61 > ++++++++++++++++++++++++++++++++++++++ > libmultipath/propsel.c | 6 +++- > multipath/multipath.conf.5 | 19 ++++++++++-- > 8 files changed, 127 insertions(+), 9 deletions(-) > create mode 100644 libmultipath/prioritizers/sysfs.c > > -- > 2.6.6 > > --001a1140211e44565405383646c8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Finally merged.
Thanks.

On Fri, Jul 15, 2016 at 8:48 AM, Han= nes Reinecke <hare@suse.de> wrote:
Hi all,

this is a resend of a previous patchset for adding a 'sysfs'
prioritizer. This prioritizer uses the sysfs attributes
'access_state' and 'exclusive_pref_bit' to generate the
path priority.
Priority values are identical to those from the 'alua'
prioritizer.

Note: the mentioned sysfs attributes are filled in by
every device handler, but only the 'alua' handler has
enough logic to keep them up-to-date.
So use with caution for other device handlers.

Hannes Reinecke (3):
=C2=A0 libmultipath: call get_vpd_uid() if no uid_attribute is set
=C2=A0 alua prioritizer: Fix typo 'perf'
=C2=A0 multipathd: Add 'sysfs' prioritizer

=C2=A0libmultipath/discovery.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 36= ++++++++++++++++++++++
=C2=A0libmultipath/discovery.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2= =A0 2 ++
=C2=A0libmultipath/prio.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 |=C2=A0 1 +
=C2=A0libmultipath/prioritizers/Makefile |=C2=A0 3 +-
=C2=A0libmultipath/prioritizers/alua.c=C2=A0 =C2=A0|=C2=A0 8 ++---
=C2=A0libmultipath/prioritizers/sysfs.c=C2=A0 | 61 ++++++++++++++++++++++++= ++++++++++++++
=C2=A0libmultipath/propsel.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0|=C2=A0 6 +++-
=C2=A0multipath/multipath.conf.5=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 19 ++++= ++++++--
=C2=A08 files changed, 127 insertions(+), 9 deletions(-)
=C2=A0create mode 100644 libmultipath/prioritizers/sysfs.c

--
2.6.6


--001a1140211e44565405383646c8-- --===============4279678895724952360== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4279678895724952360==--