The
library and the functions it provides are used for implementing
utilities which need to access a UFS file system at a low level from
userland.
Facilities provided are used to implement utilities such as
newfs(8)
and
dumpfs(8).
The
library is designed to be simple, and to provide functions that are
traditionally useful to have.
A disk is represented as the type
Vt struct uufsd
as defined in
In libufs.h .
The structure is filled out, operations are performed, and the disk
is closed.
ERRORS
Functions provided by
return -1 in every functional error situation.
They also set the
d_error
field of
Vt struct uufsd
to a string describing the error.