class type bm_view_t =View on blockmap state:object
..end
method blockmap_get_e : identity:string -> Nn_blockmap.blockmap_t Uq_engines.engine
blockalloc
table for this datastore
identity
, wrapped into a blockmap_t
objectmethod blockmap_alloc_e : rpolicy:rpolicy ->
index:int64 ->
number:int ->
pref:string list ->
transacted_datastores -> Pfs_rpcapi_aux.blocklist Uq_engines.engine
index
is the first
index number to use in the returned list of blocks, index+number-1
is the last index number. For each index blocks are allocated on
the datanodes according to rpolicy
(usually with replicas).
At reservation time, only the blockmap is updated; at commit time
the blockalloc
database table. The blocks are not associated with
inodes yet.
pref
: list of preferred datanodes, given as identity strings.
method blockmap_dealloc_e : (string * int64) list -> unit Uq_engines.engine
(identity,block)
.method blockmap_load_e : unit -> unit Uq_engines.engine
method blockmap_keep : (string * int64) list -> unit
blockmap_load_e
).