Library
Module
Module type
Parameter
Class
Class type
module Log : Protocol_9p.S.LOG
include Protocol_9p.Client.S
A thread which wakes up when the connection to the server has been broken
Disconnect from the 9P server, but leave the underlying FLOW connected.
val create :
t ->
string list ->
string ->
Protocol_9p__.Protocol_9p_types.FileMode.t ->
(unit, [ `Msg of string ]) result Lwt.t
create t path name perm
creates a new empty file name
inside path
with * the given permissions.
write t path offset buf
writes buf
to the file at path
at offset offset
read t path offset count
returns a list of buffers containing count
bytes from offset offset
in the file given by path
val mkdir :
t ->
string list ->
string ->
Protocol_9p__.Protocol_9p_types.FileMode.t ->
(unit, [ `Msg of string ]) result Lwt.t
mkdir t path name perm
creates a new directory name
inside path
with * the given permissions.
remove t path
removes a file or directory from the filesystem.
val readdir :
t ->
string list ->
(Protocol_9p__.Protocol_9p_types.Stat.t list, [ `Msg of string ]) result
Lwt.t
Return the contents of a named directory.
val stat :
t ->
string list ->
(Protocol_9p__.Protocol_9p_types.Stat.t, [ `Msg of string ]) result Lwt.t
Return information about a named directory or named file.
module KV_RO : Mirage_kv_lwt.RO with type t = t
module LowLevel : sig ... end
The functions in this module are mapped directly onto individual 9P RPCs. The client must carefully respect the rules on managing fids and stay within the message size limits.
val connect :
string ->
string ->
?msize:int32 ->
?username:string ->
?aname:string ->
?max_fids:int32 ->
?send_pings:bool ->
unit ->
t Protocol_9p.Error.t Lwt.t
connect proto address ?msize ?username ?aname ()
creates a 9P connection over proto
to address
with an optional maximum message size ?msize
and optional ?username
and authentication ?aname
. max_fids
is the maximal numbers of files concurrently opened by the client. If ?send_pings
is true then regular "walk"s to / will be used to keep the connection alive-- this is useful over TCP connections where stateful middleboxes silently drop connections. Allowed combinations of proto
and address
are: