Download VeilFS Documentation
Transcript
VeilFS Documentation, Release 1.0
Gets file’s full name (user’s root is added to name, but only when asking about non-group dir).
get_user_id() → Result
• ErrorDesc: atom
• Result: {ok, UserID} | {error, ErrorDesc}
• UserID: term()
Gets user’s id.
get_user_root(UserDoc :: term()) → Result
• ErrorDesc: atom
• Result: {ok, RootDir} | {error, ErrorDesc}
• RootDir: string()
Gets user’s root directory.
handle(ProtocolVersion :: term(), Request :: term()) → Result
• Result: term()
worker_plugin_behaviour callback handle/1. Processes standard worker requests (e.g. ping)
and requests from FUSE.
init(Args :: term()) -> list()
worker_plugin_behaviour callback init/1
fslogic_storage
Authors Rafal Slota
Copyright This software is released under the MIT License.
Descritpion This module exports storage management tools for fslogic
Function Index
• get_sh_for_fuse/2
• insert_storage/2
• insert_storage/3
• select_storage/2
Function Details
get_sh_for_fuse(FuseID :: string(), Storage ::
age_helper_info{}
#storage_info{}) → #stor-
Returns #storage_helper_info{} record which describes storage helper that is connected with
given storage (described with #storage_info{} record). Each storage can have multiple storage helpers, that varies between FUSE groups, so that different FUSE clients (with different
FUSE_ID) could select different storage helper.
insert_storage(HelperName :: string(), HelperArgs :: [string()]) -> term()
168
Chapter 11. Erlang modules