Mpath

Mpath — plugin for basic operations with multipath devices

Synopsis

#include <mpath.h>

GQuark              bd_mpath_error_quark                (void);
#define             BD_MPATH_ERROR
enum                BDMpathError;
gboolean            bd_mpath_flush_mpaths               (GError **error);
gboolean            bd_mpath_is_mpath_member            (gchar *device,
                                                         GError **error);
gboolean            bd_mpath_set_friendly_names         (gboolean enabled,
                                                         GError **error);

Description

A plugin for basic operations with multipath devices.

Details

bd_mpath_error_quark ()

GQuark              bd_mpath_error_quark                (void);

BD_MPATH_ERROR

#define             BD_MPATH_ERROR

enum BDMpathError

typedef enum {
    BD_MPATH_ERROR_FLUSH,
    BD_MPATH_ERROR_NOT_ROOT,
    BD_MPATH_ERROR_DM_ERROR,
    BD_MPATH_ERROR_INVAL,
} BDMpathError;

BD_MPATH_ERROR_FLUSH

BD_MPATH_ERROR_NOT_ROOT

BD_MPATH_ERROR_DM_ERROR

BD_MPATH_ERROR_INVAL


bd_mpath_flush_mpaths ()

gboolean            bd_mpath_flush_mpaths               (GError **error);

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);

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);

enabled :

whether friendly names should be enabled or not

error :

place to store error (if any). [out]

Returns :

if successfully set or not