|
NAMEsbget , sbput ,
sbread , sbwrite —
read and write superblocks of a UFS file system
LIBRARYUFS File System Access Library (libufs, -lufs)SYNOPSIS#include <sys/param.h>
#include <sys/mount.h>
#include <ufs/ufs/ufsmount.h>
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
#include <libufs.h>
int
int
int
int
DESCRIPTIONThesbget () and sbread ()
functions provide superblock reads for
libufs(3)
consumers. The sbput () and
sbwrite () functions provide superblock writes for
libufs(3)
consumers.
The The The The RETURN VALUESThesbread () and sbwrite ()
functions return the value 0 if successful; otherwise the
value -1 is returned and the global variable
errno is set to indicate the error. The
sbget () and sbput () functions
return the value 0 if successful; otherwise they return one of the errors
described below.
ERRORSThe errors returned bysbget () and
sbread () include any of the errors specified for the
library function
bread(3).
Additionally, they may follow the
libufs(3)
error methodologies in situations where no usable superblock could be found.
The errors returned by SEE ALSObread(3), bwrite(3), libufs(3)HISTORYThese functions first appeared as part of libufs(3) in FreeBSD 5.0.AUTHORSJuli Mallett <jmallett@FreeBSD.org>Marshall Kirk McKusick <mckusick@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |