package obus
Install
Dune Dependency
Authors
Maintainers
Sources
md5=81eb1034c6ef4421a2368a9b352199de
sha512=4b540497188a7d78f4f14f94c6b7fdff47dd06436a34e650ff378dd77bb3e2acb7afd45cd72daf4ddba06e732e9944d560c2882dc37862f1b1f1bb6df37e6205
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