package obus
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=75703f78015e15d03d0fdba1633a155875daf17d854225658429e72a0df06258
md5=3090a796f0af95e16838d81656ac4b97
doc/obus.udisks/UDisks_device/index.html
Module UDisks_device
Source
UDisks device interface
Methods
type benchmark_result = {
bench_read_transfer_rate_results : (int64 * float) list;
(*An array of pairs where the first element is the offset and the second element is the measured read transfer rate (in bytes/sec) at the given offset.
*)bench_write_transfer_rate_results : (int64 * float) list;
(*An array of pairs where the first element is the offset and the second element is the measured read transfer rate (in bytes/sec) at the given offset. This is an empty array unless write benchmarking has been requested.
*)bench_access_time_results : (int64 * float) list;
(*An array of pairs where the first element is the offset and the second element the amount of time (in seconds) it took to seek to the position.
*)
}
val drive_benchmark :
t ->
do_write_benchmark:bool ->
options:string list ->
benchmark_result Lwt.t
val drive_set_spindown_timeout :
t ->
timeout_seconds:int ->
options:string list ->
spindown_timeout_cookie Lwt.t
Signals
type job = {
job_in_progress : bool;
(*Whether a job is currently in progress
*)job_id : string;
(*The identifier of the job
*)job_initiated_by_uid : int;
(*he UNIX user id of the user who initiated the job
*)job_is_cancellable : bool;
(*Whether the job is cancellable
*)job_cur_task_percentage : float;
(*Percentage completed of current task (between 0 and 100, negative if unknown)
*)
}
A job description