| libblockdev Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <mpath.h> gboolean bd_mpath_check_deps (); gboolean bd_mpath_init (); void bd_mpath_close (); 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 (const gchar *device,GError **error); gchar ** bd_mpath_get_mpath_members (GError **error); gboolean bd_mpath_set_friendly_names (gboolean enabled,GError **error);
gboolean bd_mpath_check_deps ();
Returns : |
whether the plugin's runtime dependencies are satisfied or not Function checking plugin's runtime dependencies. |
gboolean bd_mpath_init ();
Initializes the plugin. **This function is called automatically by the library's initialization functions.**
void bd_mpath_close ();
Cleans up after the plugin. **This function is called automatically by the library's functions that unload it.**
typedef enum {
BD_MPATH_ERROR_FLUSH,
BD_MPATH_ERROR_NOT_ROOT,
BD_MPATH_ERROR_DM_ERROR,
BD_MPATH_ERROR_INVAL,
} BDMpathError;
gboolean bd_mpath_flush_mpaths (GError **error);
|
place to store error (if any). [out] |
Returns : |
whether multipath device maps were successfully flushed or not Flushes all unused multipath device maps. |
gboolean bd_mpath_is_mpath_member (const gchar *device,GError **error);
|
device to test |
|
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) |
gchar ** bd_mpath_get_mpath_members (GError **error);
|
place to store error (if any). [out] |
Returns : |
list of names of all devices that are
members of the mpath mappings (or NULL
in case of error). [transfer full][array zero-terminated=1]
|