Functions
bd_dm_check_deps ()
gboolean
bd_dm_check_deps ();
Returns
whether the plugin's runtime dependencies are satisfied or not
Function checking plugin's runtime dependencies.
bd_dm_close ()
void
bd_dm_close ();
Cleans up after the plugin. **This function is called automatically by the
library's functions that unload it.**
bd_dm_init ()
gboolean
bd_dm_init ();
Initializes the plugin. **This function is called automatically by the
library's initialization functions.**
bd_dm_error_quark ()
GQuark
bd_dm_error_quark (void
);
[skip]
bd_dm_create_linear ()
gboolean
bd_dm_create_linear (const gchar *map_name
,
const gchar *device
,
guint64 length
,
const gchar *uuid
,
GError **error
);
Returns
whether the new linear mapping map_name
was successfully created
for the device
or not
bd_dm_remove ()
gboolean
bd_dm_remove (const gchar *map_name
,
GError **error
);
Returns
whether the map_name
map was successfully removed or not
bd_dm_name_from_node ()
gchar *
bd_dm_name_from_node (const gchar *dm_node
,
GError **error
);
Returns
map name of the map providing the dm_node
device or NULL
(error
) contains the error in such cases)
bd_dm_node_from_name ()
gchar *
bd_dm_node_from_name (const gchar *map_name
,
GError **error
);
Returns
DM node name for the map_name
map or NULL
(error
) contains
the error in such cases)
bd_dm_map_exists ()
gboolean
bd_dm_map_exists (const gchar *map_name
,
gboolean live_only
,
gboolean active_only
,
GError **error
);
Returns
whether the given map_name
exists (and is live if live_only
is
TRUE
(and is active if active_only
is TRUE
)).
bd_dm_get_member_raid_sets ()
gchar **
bd_dm_get_member_raid_sets (const gchar *name
,
const gchar *uuid
,
gint major
,
gint minor
,
GError **error
);
Returns
list of names of the RAID sets related to
the member or NULL
in case of error
One of name
, uuid
or major
:minor
has to be given.
[transfer full][array zero-terminated=1]
bd_dm_activate_raid_set ()
gboolean
bd_dm_activate_raid_set (const gchar *name
,
GError **error
);
Returns
whether the RAID set name
was successfully activate or not
bd_dm_deactivate_raid_set ()
gboolean
bd_dm_deactivate_raid_set (const gchar *name
,
GError **error
);
Returns
whether the RAID set name
was successfully deactivate or not
bd_dm_get_raid_set_type ()
gchar *
bd_dm_get_raid_set_type (const gchar *name
,
GError **error
);
Returns
string representation of the name
RAID set's type