<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
- <allow_active>yes</allow_active>
- </defaults>
- </action>
-
- <action id="org.freedesktop.devicekit.disks.linux-md-system-internal">
- <_description>Configure Linux Software RAID on a system-internal device</_description>
- <_message>Authentication is required to configure Linux Software RAID devices</_message>
- <defaults>
- <allow_any>no</allow_any>
- <allow_inactive>no</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
</action>
if (!devkit_disks_damon_local_check_auth (device->priv->daemon,
pk_caller,
- device->priv->device_is_system_internal ?
- "org.freedesktop.devicekit.disks.linux-md-system-internal" :
"org.freedesktop.devicekit.disks.linux-md",
context)) {
goto out;
if (!devkit_disks_damon_local_check_auth (device->priv->daemon,
pk_caller,
- device->priv->device_is_system_internal ?
- "org.freedesktop.devicekit.disks.linux-md-system-internal" :
"org.freedesktop.devicekit.disks.linux-md",
context)) {
goto out;
if (!devkit_disks_damon_local_check_auth (device->priv->daemon,
pk_caller,
- device->priv->device_is_system_internal ?
- "org.freedesktop.devicekit.disks.linux-md-system-internal" :
"org.freedesktop.devicekit.disks.linux-md",
context)) {
goto out;
if (!devkit_disks_damon_local_check_auth (daemon,
pk_caller,
- TRUE ? /* TODO: si IFF just a single component is si */
- "org.freedesktop.devicekit.disks.linux-md-system-internal" :
"org.freedesktop.devicekit.disks.linux-md",
context)) {
goto out;
#endif
}
+/* ---------------------------------------------------------------------------------------------------- */
static gchar **poller_devices_to_poll = NULL;
}
}
+/* ---------------------------------------------------------------------------------------------------- */
static gboolean
poller_timeout_cb (gpointer user_data)
return TRUE;
}
+/* ---------------------------------------------------------------------------------------------------- */
+
static gboolean
poller_have_data (GIOChannel *channel,
GIOCondition condition,
return TRUE;
}
+/* ---------------------------------------------------------------------------------------------------- */
+
static void
poller_run (gint fd)
{
return ret;
}
+/* ---------------------------------------------------------------------------------------------------- */
+
void
devkit_disks_poller_set_devices (GList *devices)
{
devices_currently_polled = devices_to_poll;
write (poller_daemon_write_end_fd, devices_currently_polled, strlen (devices_currently_polled));
- //g_debug ("Wanna poll: '%s'", devices_currently_polled);
+ //g_debug ("Want to poll: '%s'", devices_currently_polled);
} else {
g_free (devices_to_poll);
}
}
+
+/* ---------------------------------------------------------------------------------------------------- */
#include <devkit-disks-device.h>
gboolean devkit_disks_poller_setup (int argc, char *argv[]);
+
+/* media detection polling */
void devkit_disks_poller_set_devices (GList *devices);
void devkit_disks_poller_poll_device (const gchar *device_file);
+/* ATA smart polling */
+void devkit_disks_poller_set_ata_smart_devices (GList *devices);
#endif /* __DEVKIT_DISKS_POLLER_H */
</doc:para>
</doc:description>
<doc:permission>
- The caller will need one of the following PolicyKit authorizations:
+ The caller will need the following PolicyKit authorization:
<doc:list>
<doc:item>
<doc:term>org.freedesktop.devicekit.disks.linux-md</doc:term>
<doc:definition>
- Needed to configured Linux md Software RAID devices where all components are
- <doc:ref type="property" to="Device:device-is-system-internal">non-system-internal</doc:ref>.
- </doc:definition>
- </doc:item>
- <doc:item>
- <doc:term>org.freedesktop.devicekit.disks.linux-md-system-internal</doc:term>
- <doc:definition>
- Needed to configured Linux md Software RAID devices with one or more
- <doc:ref type="property" to="Device:device-is-system-internal">system-internal</doc:ref>
- components.
+ Needed to configured Linux md Software RAID devices.
</doc:definition>
</doc:item>
</doc:list>
</doc:para>
</doc:description>
<doc:permission>
- The caller will need one of the following PolicyKit authorizations:
+ The caller will need the following PolicyKit authorization:
<doc:list>
<doc:item>
<doc:term>org.freedesktop.devicekit.disks.linux-md</doc:term>
<doc:definition>
- Needed to configured Linux md Software RAID devices where all components are
- <doc:ref type="property" to="Device:device-is-system-internal">non-system-internal</doc:ref>.
- </doc:definition>
- </doc:item>
- <doc:item>
- <doc:term>org.freedesktop.devicekit.disks.linux-md-system-internal</doc:term>
- <doc:definition>
- Needed to configured Linux md Software RAID devices with one or more
- <doc:ref type="property" to="Device:device-is-system-internal">system-internal</doc:ref>
- components.
+ Needed to configured Linux md Software RAID devices.
</doc:definition>
</doc:item>
</doc:list>
</doc:para>
</doc:description>
<doc:permission>
- The caller will need one of the following PolicyKit authorizations:
+ The caller will need the following PolicyKit authorization:
<doc:list>
<doc:item>
<doc:term>org.freedesktop.devicekit.disks.linux-md</doc:term>
<doc:definition>
- Needed to configured Linux md Software RAID devices where all components are
- <doc:ref type="property" to="Device:device-is-system-internal">non-system-internal</doc:ref>.
- </doc:definition>
- </doc:item>
- <doc:item>
- <doc:term>org.freedesktop.devicekit.disks.linux-md-system-internal</doc:term>
- <doc:definition>
- Needed to configured Linux md Software RAID devices with one or more
- <doc:ref type="property" to="Device:device-is-system-internal">system-internal</doc:ref>
- components.
+ Needed to configured Linux md Software RAID devices.
</doc:definition>
</doc:item>
</doc:list>
</doc:para>
</doc:description>
<doc:permission>
- The caller will need one of the following PolicyKit authorizations:
+ The caller will need the following PolicyKit authorization:
<doc:list>
<doc:item>
<doc:term>org.freedesktop.devicekit.disks.linux-md</doc:term>
<doc:definition>
- Needed to configured Linux md Software RAID devices where all components are
- <doc:ref type="property" to="Device:device-is-system-internal">non-system-internal</doc:ref>.
- </doc:definition>
- </doc:item>
- <doc:item>
- <doc:term>org.freedesktop.devicekit.disks.linux-md-system-internal</doc:term>
- <doc:definition>
- Needed to configured Linux md Software RAID devices with one or more
- <doc:ref type="property" to="Device:device-is-system-internal">system-internal</doc:ref>
- components.
+ Needed to configured Linux md Software RAID devices.
</doc:definition>
</doc:item>
</doc:list>