package obus
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=b8a0707f03d525a98c1c5a380b07074e52f2d26918c7b2ad90b5cc0f99a67f2d
md5=0896d5078bfd486a65cf9fa73a984b3f
doc/obus.udisks/UDisks/index.html
Module UDisks
UDisks main interface
include OBus_peer.Private
type t = private OBus_peer.peerval of_peer : OBus_peer.peer -> tval to_peer : t -> OBus_peer.peerExceptions
val busy : OBus_error.nameval cancelled : OBus_error.nameval failed : OBus_error.nameval filesystem_driver_missing : OBus_error.nameval filesystem_tools_missing : OBus_error.nameval inhibited : OBus_error.nameval invalid_option : OBus_error.nameval not_found : OBus_error.nameval not_supported : OBus_error.nameval permission_denied : OBus_error.nameMethods
val inhibit : t -> inhibit_cookie Lwt.tval uninhibit : t -> cookie:inhibit_cookie -> unit Lwt.tval linux_md_create :
t ->
components:UDisks_device.t list ->
level:string ->
stripe_size:int64 ->
name:string ->
options:string list ->
UDisks_device.t Lwt.tval linux_md_start :
t ->
components:UDisks_device.t list ->
options:string list ->
UDisks_device.t Lwt.tval linux_lvm2_lvcreate :
t ->
group_uuid:string ->
name:string ->
size:int64 ->
num_stripes:int ->
stripe_size:int64 ->
num_mirrors:int ->
options:string list ->
fstype:string ->
fsoptions:string list ->
UDisks_device.t Lwt.tval linux_lvm2_vgadd_pv :
t ->
uuid:string ->
physical_volume:UDisks_device.t ->
options:string list ->
unit Lwt.tval drive_set_all_spindown_timeouts :
t ->
timeout_seconds:int ->
options:string list ->
all_spindown_timeouts_cookie Lwt.tval drive_unset_all_spindown_timeouts :
t ->
cookie:all_spindown_timeouts_cookie ->
unit Lwt.tval drive_inhibit_all_polling :
t ->
options:string list ->
inhibit_all_polling_cookie Lwt.tval drive_uninhibit_all_polling :
t ->
cookie:inhibit_all_polling_cookie ->
unit Lwt.tval find_device_by_major_minor :
t ->
device_major:int64 ->
device_minor:int64 ->
UDisks_device.t Lwt.tval find_device_by_device_file :
t ->
device_file:string ->
UDisks_device.t Lwt.tval enumerate_devices : t -> UDisks_device.t list Lwt.tval enumerate_ports : t -> UDisks_port.t list Lwt.tval enumerate_expanders : t -> UDisks_expander.t list Lwt.tval enumerate_adapters : t -> UDisks_adapter.t list Lwt.tSignals
val port_changed : t -> UDisks_port.t OBus_signal.tval port_removed : t -> UDisks_port.t OBus_signal.tval port_added : t -> UDisks_port.t OBus_signal.tval expander_changed : t -> UDisks_expander.t OBus_signal.tval expander_removed : t -> UDisks_expander.t OBus_signal.tval expander_added : t -> UDisks_expander.t OBus_signal.tval adapter_changed : t -> UDisks_adapter.t OBus_signal.tval adapter_removed : t -> UDisks_adapter.t OBus_signal.tval adapter_added : t -> UDisks_adapter.t OBus_signal.tval device_changed : t -> UDisks_device.t OBus_signal.tval device_removed : t -> UDisks_device.t OBus_signal.tval device_added : t -> UDisks_device.t OBus_signal.ttype job = {job_device : UDisks_device.t;job_in_progress : bool;(*Whether a job is currently in progress.</doc:summary
*)job_is_cancellable : bool;(*Whether the job is cancellable
*)job_id : string;(*The identifier of the job
*)job_num_tasks : int;(*Number of tasks in the job
*)job_cur_task : int;(*Current task number (zero-based offset)
*)job_cur_task_id : string;(*Task identifier for current task
*)job_cur_task_percentage : float;(*Percentage completed of current task (between 0 and 100, negative if unknown)
*)
}val device_job_changed : t -> job OBus_signal.tProperties
type fs = {fs_id : string;(*The name / identifier of the file system (such as ext3 or vfat), similar to the contents of the Device:IdType property.
*)fs_name : string;(*A human readable name for the file system such as "Linux Ext3".
*)fs_supports_unix_owners : bool;(*Whether the file system supports the UNIX owners model (e.g. ext3 does, but vfat doesn't).
*)fs_can_mount : bool;(*Whether the file system can be mounted.
*)fs_can_create : bool;(*Whether the file system can be created on a device.
*)fs_max_label_len : int;(*The maximum amount of bytes that the file system label can hold. Set to zero if the file system doesn't support labels.
*)fs_supports_label_rename : bool;(*Whether the label of the file system can be changed.
*)fs_supports_online_label_rename : bool;(*Whether the label can be changed while the file system is mounted.
*)fs_supports_fsck : bool;(*Whether the file system can be checked.
*)fs_supports_online_fsck : bool;(*Whether the file system can be checked while mounted.
*)fs_supports_resize_enlarge : bool;(*Whether the file system can be enlarged.
*)fs_supports_online_resize_enlarge : bool;(*Whether the file system can be enlarged while mounted.
*)fs_supports_resize_shrink : bool;(*Whether the file system can be shrunk.
*)fs_supports_online_resize_shrink : bool;(*Whether the file system can be shrunk while mounted.
*)
}File-system informations
val known_filesystems : t -> fs list OBus_property.rval supports_luks_devices : t -> bool OBus_property.rval daemon_is_inhibited : t -> bool OBus_property.rval daemon_version : t -> string OBus_property.rval properties : t -> OBus_property.group