[dm-devel] [PATCH v2 10/17] libmultipath: add code to get vendor specific vpd data
Martin Wilck
Martin.Wilck at suse.com
Tue Feb 11 08:39:21 UTC 2020
On Wed, 2020-02-05 at 12:58 -0600, Benjamin Marzinski wrote:
> This adds the wildcard 'g' for multipath and path formatted printing,
> which returns extra data from a device's vendor specific vpd
> page. The
> specific vendor vpd page to use, and the vendor/product id to decode
> it
> can be set in the hwentry with vpd_vendor_pg and vpd_vendor_id. It
> can
> be configured in the devices section of multipath.conf with the
> vpd_vendor parameter. Currently, the only devices that use this are
> HPE
> 3PAR arrays, to return the Volume Name.
>
> Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
> ---
> libmultipath/config.c | 2 ++
> libmultipath/config.h | 1 +
> libmultipath/dict.c | 38 ++++++++++++++++++++++++++++++++++++
> libmultipath/discovery.c | 40
> +++++++++++++++++++++++++++++++++++++-
> libmultipath/hwtable.c | 1 +
> libmultipath/print.c | 25 ++++++++++++++++++++++++
> libmultipath/propsel.c | 18 +++++++++++++++++
> libmultipath/propsel.h | 1 +
> libmultipath/structs.h | 15 ++++++++++++++
> multipath/multipath.conf.5 | 8 ++++++++
> 10 files changed, 148 insertions(+), 1 deletion(-)
Acked-by: Martin Wilck <mwilck at suse.com>
(wishing that the memory usage can be decreased in a follow-up patch).
More information about the dm-devel
mailing list