Top |
void
bd_dm_close (void
);
Cleans up after the plugin. **This function is called automatically by the library's functions that unload it.**
gboolean
bd_dm_init (void
);
Initializes the plugin. **This function is called automatically by the library's initialization functions.**
gboolean bd_dm_create_linear (const gchar *map_name
,const gchar *device
,guint64 length
,const gchar *uuid
,GError **error
);
map_name |
name of the map |
|
device |
device to create map for |
|
length |
length of the mapping in sectors |
|
uuid |
UUID for the new dev mapper device or |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the new linear mapping map_name
was successfully created
for the device
or not
Tech category: BD_DM_TECH_MAP
-BD_DM_TECH_MODE_CREATE_ACTIVATE
gboolean bd_dm_remove (const gchar *map_name
,GError **error
);
whether the map_name
map was successfully removed or not
Tech category: BD_DM_TECH_MAP
-BD_DM_TECH_MODE_REMOVE_DEACTIVATE
gchar * bd_dm_name_from_node (const gchar *dm_node
,GError **error
);
dm_node |
name of the DM node (e.g. "dm-0") |
|
error |
place to store error (if any). |
[out][optional] |
map name of the map providing the dm_node
device or NULL
(error
) contains the error in such cases)
Tech category: BD_DM_TECH_MAP
-BD_DM_TECH_MODE_QUERY
gchar * bd_dm_node_from_name (const gchar *map_name
,GError **error
);
DM node name for the map_name
map or NULL
(error
) contains
the error in such cases)
Tech category: BD_DM_TECH_MAP
-BD_DM_TECH_MODE_QUERY
gboolean bd_dm_map_exists (const gchar *map_name
,gboolean live_only
,gboolean active_only
,GError **error
);
map_name |
name of the queried map |
|
live_only |
whether to go through the live maps only or not |
|
active_only |
whether to ignore suspended maps or not |
|
error |
place to store error (if any). |
[out][optional] |
whether the given map_name
exists (and is live if live_only
is
TRUE
(and is active if active_only
is TRUE
)).
Tech category: BD_DM_TECH_MAP
-BD_DM_TECH_MODE_QUERY
gchar * bd_dm_get_subsystem_from_name (const gchar *device_name
,GError **error
);
gchar ** bd_dm_get_member_raid_sets (const gchar *name
,const gchar *uuid
,gint major
,gint minor
,GError **error
);
name |
name of the member. |
[nullable] |
uuid |
uuid of the member. |
[nullable] |
major |
major number of the device or -1 if not specified |
|
minor |
minor number of the device or -1 if not specified |
|
error |
variable to store error (if any). |
[out][optional] |
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.
Tech category: BD_DM_TECH_RAID
-BD_DM_TECH_MODE_QUERY
.
[transfer full][array zero-terminated=1]
gboolean bd_dm_activate_raid_set (const gchar *name
,GError **error
);
name |
name of the DM RAID set to activate |
|
error |
variable to store error (if any). |
[out][optional] |
whether the RAID set name
was successfully activate or not
Tech category: BD_DM_TECH_RAID
-BD_DM_TECH_MODE_CREATE_ACTIVATE
gboolean bd_dm_deactivate_raid_set (const gchar *name
,GError **error
);
name |
name of the DM RAID set to deactivate |
|
error |
variable to store error (if any). |
[out][optional] |
whether the RAID set name
was successfully deactivate or not
Tech category: BD_DM_TECH_RAID
-BD_DM_TECH_MODE_REMOVE_DEACTIVATE
gchar * bd_dm_get_raid_set_type (const gchar *name
,GError **error
);
name |
name of the DM RAID set to get the type of |
|
error |
variable to store error (if any). |
[out][optional] |
string representation of the name
RAID set's type
Tech category: BD_DM_TECH_RAID
-BD_DM_TECH_MODE_QUERY
gboolean bd_dm_is_tech_avail (BDDMTech tech
,guint64 mode
,GError **error
);
tech |
the queried tech |
|
mode |
a bit mask of queried modes of operation (BDDMTechMode) for |
|
error |
place to store error (details about why the |
[out][optional] |