| Storaged Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
StoragedLinuxMDRaidObjectStoragedLinuxMDRaidObject — Object representing a Linux Software RAID array |
StoragedLinuxMDRaidObject; StoragedLinuxMDRaidObject * storaged_linux_mdraid_object_new (StoragedDaemon *daemon,const gchar *uuid); void storaged_linux_mdraid_object_uevent (StoragedLinuxMDRaidObject *object,const gchar *action,StoragedLinuxDevice *device,gboolean is_member); gboolean storaged_linux_mdraid_object_have_devices (StoragedLinuxMDRaidObject *object); StoragedDaemon * storaged_linux_mdraid_object_get_daemon (StoragedLinuxMDRaidObject *object); StoragedLinuxDevice * storaged_linux_mdraid_object_get_device (StoragedLinuxMDRaidObject *object); GList * storaged_linux_mdraid_object_get_members (StoragedLinuxMDRaidObject *object); const gchar * storaged_linux_mdraid_object_get_uuid (StoragedLinuxMDRaidObject *object);
GObject
+----GDBusObjectSkeleton
+----StoragedObjectSkeleton
+----StoragedLinuxMDRaidObject
"daemon" StoragedDaemon* : Read / Write / Construct Only "uuid" gchar* : Write / Construct Only
typedef struct _StoragedLinuxMDRaidObject StoragedLinuxMDRaidObject;
The StoragedLinuxMDRaidObject structure contains only private data and should only be accessed using the provided API.
StoragedLinuxMDRaidObject * storaged_linux_mdraid_object_new (StoragedDaemon *daemon,const gchar *uuid);
Create a new MDRaid object.
|
A StoragedDaemon. |
|
The UUID for the array. |
Returns : |
A StoragedLinuxMDRaidObject object. Free with g_object_unref(). |
void storaged_linux_mdraid_object_uevent (StoragedLinuxMDRaidObject *object,const gchar *action,StoragedLinuxDevice *device,gboolean is_member);
Updates all information on interfaces on mdraid.
|
A StoragedLinuxMDRaidObject. |
|
Uevent action or NULL
|
|
A StoragedLinuxDevice device object or NULL if the device hasn't changed. |
|
TRUE if device is a member, FALSE if it's the raid device. |
gboolean storaged_linux_mdraid_object_have_devices
(StoragedLinuxMDRaidObject *object);
Checks if there are any devices associated with object at
all. This includes both member devices and the raid device.
|
A StoragedLinuxMDRaidObject. |
Returns : |
TRUE if at least one device is associated with object, FALSE otherwise. |
StoragedDaemon * storaged_linux_mdraid_object_get_daemon
(StoragedLinuxMDRaidObject *object);
Gets the daemon used by object.
|
A StoragedLinuxMDRaidObject. |
Returns : |
A StoragedDaemon. Do not free, the object is owned by object. |
StoragedLinuxDevice * storaged_linux_mdraid_object_get_device
(StoragedLinuxMDRaidObject *object);
Gets the current StoragedLinuxDevice object for the RAID device
(e.g. /dev/md0) associated with object, if any.
|
A StoragedLinuxMDRaidObject. |
Returns : |
A StoragedLinuxDevice or NULL. Free with g_object_unref(). [transfer full]
|
GList * storaged_linux_mdraid_object_get_members
(StoragedLinuxMDRaidObject *object);
Gets the current StoragedLinuxDevice objects for the RAID members associated with object.
|
A StoragedLinuxMDRaidObject. |
Returns : |
A list of StoragedLinuxDevice objects. Free each element with
g_object_unref(), then free the list with g_list_free(). |
const gchar * storaged_linux_mdraid_object_get_uuid
(StoragedLinuxMDRaidObject *object);
Gets the UUID for object.
|
A StoragedLinuxMDRaidObject. |
Returns : |
The UUID for object. Do not free, the string belongs to object. [transfer none]
|
"daemon" property"daemon" StoragedDaemon* : Read / Write / Construct Only
The StoragedDaemon the object is for.