File System Type Identification Library Functions
fstypmodinit(3FSTYP)
NAME
fstypmodinit, fstypmodfini, fstypmodident,
fstypmodgetattr, fstypmoddump - libfstyp module inter-
face
SYNOPSIS
cc [ flag... ] file... -lfstyp -lnvpair [ library... ]
#include
#include
int fstypmodinit(int fd, off64t **offset, fstypmodhandlet *handle);
void fstypmodfini(fstypmodhandlet handle);
int fstypmodident(fstypmodhandlet handle);
int fstypmodgetattr(fstypmodhandlet handle, nvlistt **attr);
int fstypmoddump(fstypmodhandlet handle, FILE *fout, FILE *ferr);
PARAMETERS
fd Open file descriptor of a block or a raw device
that contains the file system to be identified.
offset Offset from the beginning of the device where the
file system is located.
handle Opaque handle that the module returns in
fstypmodinit() and is used with other module
functions.
fout Output stream.
ferr Error stream.
DESCRIPTION
A libfstyp module implements heuristics required to identify
a file system type. The modules are shared objects loaded by
libfstyp. The libfstyp modules are located in /usr/lib/fs
subdirectories. A subdirectory name defines the name of the
file system.
SunOS 5.11 Last change: 29 Jun 2006 1
File System Type Identification Library Functions
fstypmodinit(3FSTYP)
Each module exports the fstypmodinit(), fstypmodfini(),
fstypmodident(), and fstypmodgetattr() functions. All
of these functions map directly to the respective libfstyp
interfaces.
The fstypmoddump() function is optional. It can be used to
output unformatted information about the file system. This
function is used by the fstyp(1M) command when the -v option
is specified. The fstypmoddump() function is not recom-
mended and should be used only in legacy modules.
FILES
/usr/lib/fs/
Default module directory.
/usr/lib/fs/fstype/fstyp.so.1
Default path to a libfstyp module for an fstype file
system.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Evolving
MT-Level MT-Safe
SEE ALSO
fstyp(1M), fstypstrerror(3FSTYP), libfstyp(3LIB), attri-
butes(5)
SunOS 5.11 Last change: 29 Jun 2006 2
File System Type Identification Library Functions
fstypmodinit(3FSTYP)
SunOS 5.11 Last change: 29 Jun 2006 3
|