Mpath

Mpath — plugin for basic operations with multipath devices

Functions

Types and Values

Includes

#include <mpath.h>

Description

A plugin for basic operations with multipath devices.

Functions

bd_mpath_error_quark ()

GQuark
bd_mpath_error_quark (void);

bd_mpath_flush_mpaths ()

gboolean
bd_mpath_flush_mpaths (GError **error);

Parameters

error

place to store error (if any).

[out]

Returns

whether multipath device maps were successfully flushed or not

Flushes all unused multipath device maps.


bd_mpath_is_mpath_member ()

gboolean
bd_mpath_is_mpath_member (gchar *device,
                          GError **error);

Parameters

device

device to test

 

error

place to store error (if any).

[out]

Returns

TRUE if the device is a multipath member, FALSE if not or an error appeared when queried (error is set in those cases)


bd_mpath_set_friendly_names ()

gboolean
bd_mpath_set_friendly_names (gboolean enabled,
                             GError **error);

Parameters

enabled

whether friendly names should be enabled or not

 

error

place to store error (if any).

[out]

Returns

if successfully set or not

Types and Values

BD_MPATH_ERROR

#define BD_MPATH_ERROR bd_mpath_error_quark ()

enum BDMpathError

Members

BD_MPATH_ERROR_FLUSH