package obus
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=75703f78015e15d03d0fdba1633a155875daf17d854225658429e72a0df06258
md5=3090a796f0af95e16838d81656ac4b97
doc/obus.udisks/UDisks/index.html
Module UDisks
Source
UDisks main interface
Exceptions
Methods
val linux_md_create :
t ->
components:UDisks_device.t list ->
level:string ->
stripe_size:int64 ->
name:string ->
options:string list ->
UDisks_device.t Lwt.t
val linux_md_start :
t ->
components:UDisks_device.t list ->
options:string list ->
UDisks_device.t Lwt.t
val 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.t
val linux_lvm2_vgadd_pv :
t ->
uuid:string ->
physical_volume:UDisks_device.t ->
options:string list ->
unit Lwt.t
val drive_set_all_spindown_timeouts :
t ->
timeout_seconds:int ->
options:string list ->
all_spindown_timeouts_cookie Lwt.t
val drive_unset_all_spindown_timeouts :
t ->
cookie:all_spindown_timeouts_cookie ->
unit Lwt.t
val find_device_by_major_minor :
t ->
device_major:int64 ->
device_minor:int64 ->
UDisks_device.t Lwt.t
Signals
type 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)
*)
}
Properties
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