Module safeio_directory_guard

A process that guards file access for a certain root directory against being (e.g.

Behaviours: gen_server.

Description

A process that guards file access for a certain root directory against being (e.g. NFS-) blocked.

Function Index

can_stat/1 Check if the directory is accessable.
can_stat/2 Check if the directory is accessable, with explicit time out.
get_filetype/2 Get the filetype of a path relative to the directory passed in to start_link.
get_filetype/3 Check if the directory is accessable.
heart_beat/1 Make an empty roundtrip to the port process and log the number of seconds that it took.
info/1 Print information about the port process status.
start_link/1 Run the safeio native binary and configure it.
trace_off/1 Disable sedge traces.
trace_on/2 Enable sedge traces to a file.

Function Details

can_stat/1

can_stat(Pid::pid()) -> ok | {error, term()}

Check if the directory is accessable.

can_stat/2

can_stat(Pid::pid(), TimeOutMillis::timeout()) -> ok | {error, term()}

Check if the directory is accessable, with explicit time out.

get_filetype/2

get_filetype(Pid::pid(), RelPathIn::file:filename()) -> safeio:filetype() | {error, term()}

Get the filetype of a path relative to the directory passed in to start_link.

get_filetype/3

get_filetype(Pid::pid(), RelPathIn::file:filename(), TimeOutMillis::timeout()) -> safeio:filetype() | {error, term()}

Check if the directory is accessable.

heart_beat/1

heart_beat(P::pid()) -> ok

Make an empty roundtrip to the port process and log the number of seconds that it took.

info/1

info(Pid::pid()) -> ok

Print information about the port process status.

start_link/1

start_link(Path::string()) -> {ok, pid()} | {error, term()}

Run the safeio native binary and configure it.

trace_off/1

trace_off(P::pid()) -> ok

Disable sedge traces.

trace_on/2

trace_on(Pid::pid(), LogFile::file:filename_all()) -> ok

Enable sedge traces to a file.


Generated by EDoc