dm-multipath interface

The dm-multipath interface allows snaps to manage and access device-mapper multipath maps by communicating with the multipathd daemon. It is intended for storage orchestration software that needs to list, create, reload and remove multipath devices and react to path state changes. Direct unrestricted access to arbitrary raw block devices is not granted; normal snap device cgroup mediation still applies.

For further details on interfaces, see How to connect interfaces.

Developer details

Auto-connect: no
Super-privileged: yes

Caution

This interface controls a resource shared by the whole system. Snaps that use it can be installed as parallel instances, but every instance acts on the same system resource and snapd does not coordinate between them. Make sure each instance manages different resources, or run only one instance at a time. See Snaps that are unsupported as parallel instances for details..

Code examples

The test code can be found in the snapd repository:
https://github.com/canonical/snapd/blob/master/interfaces/builtin/dm_multipath_test.go

The source code for the interface is in the snapd repository:
https://github.com/canonical/snapd/blob/master/interfaces/builtin/dm_multipath.go