UDisks.LogicalVolume

g GObject.GInterface GObject.GInterface UDisks.LogicalVolume UDisks.LogicalVolume GObject.GInterface->UDisks.LogicalVolume

Implementations:

UDisks.LogicalVolumeProxy, UDisks.LogicalVolumeSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_activate (arg_options, cancellable, callback, *user_data)

call_activate_finish (res)

call_activate_sync (arg_options, cancellable)

call_cache_attach (arg_cache_name, arg_options, cancellable, callback, *user_data)

call_cache_attach_finish (res)

call_cache_attach_sync (arg_cache_name, arg_options, cancellable)

call_cache_detach (arg_options, cancellable, callback, *user_data)

call_cache_detach_finish (res)

call_cache_detach_sync (arg_options, cancellable)

call_cache_split (arg_options, cancellable, callback, *user_data)

call_cache_split_finish (res)

call_cache_split_sync (arg_options, cancellable)

call_create_snapshot (arg_name, arg_size, arg_options, cancellable, callback, *user_data)

call_create_snapshot_finish (res)

call_create_snapshot_sync (arg_name, arg_size, arg_options, cancellable)

call_deactivate (arg_options, cancellable, callback, *user_data)

call_deactivate_finish (res)

call_deactivate_sync (arg_options, cancellable)

call_delete (arg_options, cancellable, callback, *user_data)

call_delete_finish (res)

call_delete_sync (arg_options, cancellable)

call_rename (arg_new_name, arg_options, cancellable, callback, *user_data)

call_rename_finish (res)

call_rename_sync (arg_new_name, arg_options, cancellable)

call_repair (arg_pvs, arg_options, cancellable, callback, *user_data)

call_repair_finish (res)

call_repair_sync (arg_pvs, arg_options, cancellable)

call_resize (arg_new_size, arg_options, cancellable, callback, *user_data)

call_resize_finish (res)

call_resize_sync (arg_new_size, arg_options, cancellable)

complete_activate (invocation, result)

complete_cache_attach (invocation)

complete_cache_detach (invocation)

complete_cache_split (invocation)

complete_create_snapshot (invocation, result)

complete_deactivate (invocation)

complete_delete (invocation)

complete_rename (invocation, result)

complete_repair (invocation)

complete_resize (invocation)

Virtual Methods

do_handle_activate (invocation, arg_options)

do_handle_cache_attach (invocation, arg_cache_name, arg_options)

do_handle_cache_detach (invocation, arg_options)

do_handle_cache_split (invocation, arg_options)

do_handle_create_snapshot (invocation, arg_name, arg_size, arg_options)

do_handle_deactivate (invocation, arg_options)

do_handle_delete (invocation, arg_options)

do_handle_rename (invocation, arg_new_name, arg_options)

do_handle_repair (invocation, arg_pvs, arg_options)

do_handle_resize (invocation, arg_new_size, arg_options)

Properties

Name

Type

Flags

Short Description

active

bool

r/w

Active

block-device

str

r/w

BlockDevice

child-configuration

GLib.Variant

r/w

ChildConfiguration

data-allocated-ratio

float

r/w

DataAllocatedRatio

layout

str

r/w

Layout

metadata-allocated-ratio

float

r/w

MetadataAllocatedRatio

name

str

r/w

Name

origin

str

r/w

Origin

size

int

r/w

Size

structure

GLib.Variant

r/w

Structure

sync-ratio

float

r/w

SyncRatio

thin-pool

str

r/w

ThinPool

type

str

r/w

Type

uuid

str

r/w

UUID

volume-group

str

r/w

VolumeGroup

Signals

Name

Short Description

handle-activate

Signal emitted when a remote caller is invoking the Activate() D-Bus method.

handle-cache-attach

Signal emitted when a remote caller is invoking the CacheAttach() D-Bus method.

handle-cache-detach

Signal emitted when a remote caller is invoking the CacheDetach() D-Bus method.

handle-cache-split

Signal emitted when a remote caller is invoking the CacheSplit() D-Bus method.

handle-create-snapshot

Signal emitted when a remote caller is invoking the CreateSnapshot() D-Bus method.

handle-deactivate

Signal emitted when a remote caller is invoking the Deactivate() D-Bus method.

handle-delete

Signal emitted when a remote caller is invoking the Delete() D-Bus method.

handle-rename

Signal emitted when a remote caller is invoking the Rename() D-Bus method.

handle-repair

Signal emitted when a remote caller is invoking the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method.

handle-resize

Signal emitted when a remote caller is invoking the Resize() D-Bus method.

Fields

None

Class Details

class UDisks.LogicalVolume
Bases:

GObject.GInterface

Structure:

UDisks.LogicalVolumeIface

Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.LogicalVolume.

New in version 2.0.0.

classmethod interface_info()
Returns:

A Gio.DBusInterfaceInfo. Do not free.

Return type:

Gio.DBusInterfaceInfo

Gets a machine-readable description of the org.freedesktop.UDisks2.LogicalVolume D-Bus interface.

New in version 2.0.0.

classmethod override_properties(klass, property_id_begin)
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the UDisks.LogicalVolume interface for a concrete class. The properties are overridden in the order they are defined.

New in version 2.0.0.

call_activate(arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the Activate() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_activate_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_activate_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_activate_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_activate().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_result:

Return location for return parameter or None to ignore.

Return type:

(bool, out_result: str)

Finishes an operation started with UDisks.LogicalVolume.call_activate().

New in version 2.0.0.

call_activate_sync(arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_result:

Return location for return parameter or None to ignore.

Return type:

(bool, out_result: str)

Synchronously invokes the Activate() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_activate() for the asynchronous version of this method.

New in version 2.0.0.

call_cache_attach(arg_cache_name, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the CacheAttach() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_cache_attach_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_cache_attach_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_cache_attach_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_cache_attach().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with UDisks.LogicalVolume.call_cache_attach().

New in version 2.0.0.

call_cache_attach_sync(arg_cache_name, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the CacheAttach() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_cache_attach() for the asynchronous version of this method.

New in version 2.0.0.

call_cache_detach(arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the CacheDetach() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_cache_detach_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_cache_detach_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_cache_detach_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_cache_detach().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with UDisks.LogicalVolume.call_cache_detach().

New in version 2.0.0.

call_cache_detach_sync(arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the CacheDetach() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_cache_detach() for the asynchronous version of this method.

New in version 2.0.0.

call_cache_split(arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the CacheSplit() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_cache_split_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_cache_split_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_cache_split_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_cache_split().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with UDisks.LogicalVolume.call_cache_split().

New in version 2.0.0.

call_cache_split_sync(arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the CacheSplit() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_cache_split() for the asynchronous version of this method.

New in version 2.0.0.

call_create_snapshot(arg_name, arg_size, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the CreateSnapshot() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_create_snapshot_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_create_snapshot_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_create_snapshot_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_create_snapshot().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_result:

Return location for return parameter or None to ignore.

Return type:

(bool, out_result: str)

Finishes an operation started with UDisks.LogicalVolume.call_create_snapshot().

New in version 2.0.0.

call_create_snapshot_sync(arg_name, arg_size, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_result:

Return location for return parameter or None to ignore.

Return type:

(bool, out_result: str)

Synchronously invokes the CreateSnapshot() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_create_snapshot() for the asynchronous version of this method.

New in version 2.0.0.

call_deactivate(arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the Deactivate() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_deactivate_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_deactivate_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_deactivate_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_deactivate().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with UDisks.LogicalVolume.call_deactivate().

New in version 2.0.0.

call_deactivate_sync(arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the Deactivate() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_deactivate() for the asynchronous version of this method.

New in version 2.0.0.

call_delete(arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the Delete() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_delete_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_delete_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_delete_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_delete().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with UDisks.LogicalVolume.call_delete().

New in version 2.0.0.

call_delete_sync(arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the Delete() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_delete() for the asynchronous version of this method.

New in version 2.0.0.

call_rename(arg_new_name, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the Rename() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_rename_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_rename_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_rename_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_rename().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_result:

Return location for return parameter or None to ignore.

Return type:

(bool, out_result: str)

Finishes an operation started with UDisks.LogicalVolume.call_rename().

New in version 2.0.0.

call_rename_sync(arg_new_name, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_result:

Return location for return parameter or None to ignore.

Return type:

(bool, out_result: str)

Synchronously invokes the Rename() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_rename() for the asynchronous version of this method.

New in version 2.0.0.

call_repair(arg_pvs, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_repair_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_repair_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_repair_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_repair().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with UDisks.LogicalVolume.call_repair().

New in version 2.0.0.

call_repair_sync(arg_pvs, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_repair() for the asynchronous version of this method.

New in version 2.0.0.

call_resize(arg_new_size, arg_options, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the Resize() D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call UDisks.LogicalVolume.call_resize_finish() to get the result of the operation.

See UDisks.LogicalVolume.call_resize_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_resize_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.LogicalVolume.call_resize().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with UDisks.LogicalVolume.call_resize().

New in version 2.0.0.

call_resize_sync(arg_new_size, arg_options, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the Resize() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.LogicalVolume.call_resize() for the asynchronous version of this method.

New in version 2.0.0.

complete_activate(invocation, result)
Parameters:

Helper function used in service implementations to finish handling invocations of the Activate() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

complete_cache_attach(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the CacheAttach() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

complete_cache_detach(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the CacheDetach() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

complete_cache_split(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the CacheSplit() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

complete_create_snapshot(invocation, result)
Parameters:

Helper function used in service implementations to finish handling invocations of the CreateSnapshot() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

complete_deactivate(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the Deactivate() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

complete_delete(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the Delete() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

complete_rename(invocation, result)
Parameters:

Helper function used in service implementations to finish handling invocations of the Rename() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

complete_repair(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

complete_resize(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the Resize() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

New in version 2.0.0.

do_handle_activate(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_cache_attach(invocation, arg_cache_name, arg_options) virtual
Parameters:
Return type:

bool

do_handle_cache_detach(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_cache_split(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_create_snapshot(invocation, arg_name, arg_size, arg_options) virtual
Parameters:
Return type:

bool

do_handle_deactivate(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_delete(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_rename(invocation, arg_new_name, arg_options) virtual
Parameters:
Return type:

bool

do_handle_repair(invocation, arg_pvs, arg_options) virtual
Parameters:
Return type:

bool

do_handle_resize(invocation, arg_new_size, arg_options) virtual
Parameters:
Return type:

bool

Signal Details

UDisks.LogicalVolume.signals.handle_activate(logical_volume, invocation, arg_options)
Signal Name:

handle-activate

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the Activate() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_activate() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.LogicalVolume.signals.handle_cache_attach(logical_volume, invocation, arg_cache_name, arg_options)
Signal Name:

handle-cache-attach

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the CacheAttach() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_cache_attach() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.LogicalVolume.signals.handle_cache_detach(logical_volume, invocation, arg_options)
Signal Name:

handle-cache-detach

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the CacheDetach() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_cache_detach() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.LogicalVolume.signals.handle_cache_split(logical_volume, invocation, arg_options)
Signal Name:

handle-cache-split

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the CacheSplit() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_cache_split() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.LogicalVolume.signals.handle_create_snapshot(logical_volume, invocation, arg_name, arg_size, arg_options)
Signal Name:

handle-create-snapshot

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the CreateSnapshot() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_create_snapshot() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.LogicalVolume.signals.handle_deactivate(logical_volume, invocation, arg_options)
Signal Name:

handle-deactivate

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the Deactivate() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_deactivate() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.LogicalVolume.signals.handle_delete(logical_volume, invocation, arg_options)
Signal Name:

handle-delete

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the Delete() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_delete() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.LogicalVolume.signals.handle_rename(logical_volume, invocation, arg_new_name, arg_options)
Signal Name:

handle-rename

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the Rename() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_rename() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.LogicalVolume.signals.handle_repair(logical_volume, invocation, arg_pvs, arg_options)
Signal Name:

handle-repair

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘Repair() [gdbus-method-org-freedesktop-UDisks2-LogicalVolume.Repair]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_repair() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.LogicalVolume.signals.handle_resize(logical_volume, invocation, arg_new_size, arg_options)
Signal Name:

handle-resize

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the Resize() D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call UDisks.LogicalVolume.complete_resize() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

Property Details

UDisks.LogicalVolume.props.active
Name:

active

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Active”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.block_device
Name:

block-device

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “BlockDevice”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.child_configuration
Name:

child-configuration

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “ChildConfiguration”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.data_allocated_ratio
Name:

data-allocated-ratio

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Represents the D-Bus property “DataAllocatedRatio”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.layout
Name:

layout

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Layout” [gdbus-property-org-freedesktop-UDisks2-LogicalVolume.Layout]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.metadata_allocated_ratio
Name:

metadata-allocated-ratio

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Represents the D-Bus property “MetadataAllocatedRatio”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Name”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.origin
Name:

origin

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Origin”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.size
Name:

size

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Size”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.structure
Name:

structure

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Structure” [gdbus-property-org-freedesktop-UDisks2-LogicalVolume.Structure]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.sync_ratio
Name:

sync-ratio

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“SyncRatio” [gdbus-property-org-freedesktop-UDisks2-LogicalVolume.SyncRatio]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.thin_pool
Name:

thin-pool

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “ThinPool”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.type
Name:

type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “Type”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.uuid
Name:

uuid

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “UUID”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.

UDisks.LogicalVolume.props.volume_group
Name:

volume-group

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property “VolumeGroup”.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

New in version 2.0.0.