disk_log_1
Types
dlog_head() = none | {ok, binary()} | mfa()
dlog_mode() = read_only | read_write
dlog_repair() = truncate | boolean()
Functions
logl(X::[binary()]) -> {iolist(), non_neg_integer()}
write_cache(Cache, FName) -> term()
sync(FdC, FName) -> term()
truncate(FdC, FileName, Head) -> term()
chunk(FdC, FileName, Pos, B, N) -> term()
chunk_read_only(FdC, FileName, Pos, B, N) -> term()
close(Cache, FileName, X3) -> term()
int_open(FName, Repair, X3, Head) -> term()
ext_open(FName, Repair, X3, Head) -> term()
is_head(Bin::binary()) -> yes | yes_not_closed | no
mf_int_open(FName::filename() (see module file), MaxB::integer(), MaxF::integer(), Repair::dlog_repair(), Mode::dlog_mode(), Head::dlog_head(), Version::integer()) -> {ok, #handle{filename=undefined | filename() (see module file), maxB=undefined | pos_integer(), maxF=undefined | pos_integer() | {pos_integer(), pos_integer()}, curB=undefined | non_neg_integer(), curF=undefined | integer(), cur_fdc=undefined | #cache{fd=undefined | fd() (see module file), sz=non_neg_integer(), c=iodata()}, cur_name=undefined | filename() (see module file), cur_cnt=undefined | non_neg_integer(), acc_cnt=undefined | non_neg_integer(), firstPos=undefined | non_neg_integer(), noFull=undefined | non_neg_integer(), accFull=undefined | non_neg_integer()}, integer()} | {repaired, #handle{filename=undefined | filename() (see module file), maxB=undefined | pos_integer(), maxF=undefined | pos_integer() | {pos_integer(), pos_integer()}, curB=undefined | non_neg_integer(), curF=undefined | integer(), cur_fdc=undefined | #cache{fd=undefined | fd() (see module file), sz=non_neg_integer(), c=iodata()}, cur_name=undefined | filename() (see module file), cur_cnt=undefined | non_neg_integer(), acc_cnt=undefined | non_neg_integer(), firstPos=undefined | non_neg_integer(), noFull=undefined | non_neg_integer(), accFull=undefined | non_neg_integer()}, non_neg_integer(), non_neg_integer(), non_neg_integer()}
mf_int_inc(Handle, Head) -> term()
mf_int_log(Handle, Bins, Head) -> term()
mf_int_chunk(Handle, X2, Bin, N) -> term()
mf_int_chunk_read_only(Handle, X2, Bin, N) -> term()
mf_int_chunk_step(Handle, X2, Step) -> term()
mf_write_cache(Handle) -> term()
mf_sync(Handle) -> term()
mf_int_close(Handle, Mode) -> term()
mf_ext_open(FName, MaxB, MaxF, Repair, Mode, Head, Version) -> term()
mf_ext_inc(Handle, Head) -> term()
mf_ext_log(Handle, Bins, Head) -> term()
mf_ext_close(Handle, Mode) -> term()
change_size_wrap(Handle, X2, Version) -> term()
read_index_file(FName) -> term()
print_index_file(File) -> term()
read_size_file(FName) -> term()
read_size_file_version(FName) -> term()
get_wrap_size(Handle) -> term()
fwrite(Cache, FN, B, Size) -> term()
position(Cache, FileName, Pos) -> term()
truncate_at(FdC, FileName, Pos) -> term()
fclose(Cache, FileName) -> term()