Skip to content

Two multipath features.

Benjamin Marzinski dm-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 3 repliesIn review
  2. v17 patches 14 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6libmultipath: Add max_retries config optionlibmultipath/config.h libmultipath/dict.c libmultipath/discovery.c +2 more+86 -11 reply
2/6libmutipath: Retain device size if sysfs_get_size fails.libmultipath/sysfs.c+0 -10 replies
3/6multipathd: check and update all paths when in cli_resizemultipathd/cli_handlers.c+18 -131 reply
4/6multipathd: move post-reloading commands into resize_map()multipathd/cli_handlers.c+9 -70 replies
5/6multipathd: move resize_map() to multipathd/main.cmultipathd/cli_handlers.c multipathd/main.c multipathd/main.h+31 -290 replies
6/6multipathd: Add auto_resize config optionlibmultipath/config.h libmultipath/defaults.h libmultipath/dict.c +4 more+91 -01 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchMartin Wilck
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] Two multipath features.

This patchset implements two features that I had requests for. The first commit adds the ability for multipath to control the scsi max_retries sysfs setting. This is useful for instances where a path hangs when attempting IO, but the path checker completes successfully. It allows the multipath device to fail quicker. When it's used like this it needs to be paired with the shaky path detection options, since multipathd will restore the path on the next checker run.

The rest of the patches add the auto_resize option. This option allows users to control when multipathd will automatically resize a device, if it sees that all of its path devices have been resized. By default it is set to "never" and multipath behaves like it always has, where users need to manually resize multipath devices after all the paths have been resized.

Differences from v1 (all from suggestions by Martin Wilck):
1/7: make the option default section only. used max_retries specific
enums, and clarified man page entry.
3/7: Assume path size hasn't changed if we fail to get it from sysfs. 6/7: make the option default section only. removed "multipath -r"
mention in man page. Fixed whitespace issue
7/7: removed

Benjamin Marzinski (6):
libmultipath: Add max_retries config option
libmutipath: Retain device size if sysfs_get_size fails.
multipathd: check and update all paths when in cli_resize
multipathd: move post-reloading commands into resize_map()
multipathd: move resize_map() to multipathd/main.c
multipathd: Add auto_resize config option

 libmultipath/config.h         |  2 ++
 libmultipath/defaults.h       |  1 +
 libmultipath/dict.c           | 63 +++++++++++++++++++++++++++++++++
 libmultipath/dict.h           |  1 +
 libmultipath/discovery.c      | 41 +++++++++++++++++++++-
 libmultipath/structs.h        | 13 +++++++
 libmultipath/sysfs.c          |  1 -
 multipath/multipath.conf.5.in | 29 +++++++++++++++
 multipathd/cli_handlers.c     | 66 ++++++++++++-----------------------
 multipathd/main.c             | 57 ++++++++++++++++++++++++++++++
 multipathd/main.h             |  2 ++
 11 files changed, 230 insertions(+), 46 deletions(-)
Signature · 1 line
2.41.0