Skip to content

sysfs prioritizer

Hannes Reinecke dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libmultipath: call get_vpd_uid() if no uid_attribute is setlibmultipath/discovery.c+3 -00 replies
2/3alua prioritizer: Fix typo 'perf'libmultipath/prioritizers/alua.c+4 -40 replies
3/3multipathd: Add 'sysfs' prioritizerlibmultipath/discovery.c libmultipath/discovery.h libmultipath/prio.h +4 more+120 -53 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] sysfs prioritizer

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
Signature · 1 line
2.6.6