Misc. Reference Manual Pages fstyp_mod_init(3FSTYP) NAME fstyp_mod_init, fstyp_mod_fini, fstyp_mod_ident, fstyp_mod_get_attr, fstyp_mod_dump - libfstyp module interface SYNOPSIS cc [ flag... ] file... -lfstyp -lnvpair [ library... ] #include #include int fstyp_mod_init(int fd, off64_t offset, fstyp_mod_handle_t *handle); void fstyp_mod_fini(fstyp_mod_handle_t handle); int fstyp_mod_ident(fstyp_mod_handle_t handle); int fstyp_mod_get_attr(fstyp_mod_handle_t handle, nvlist_t **attr); int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr); A libfstyp module implements heuristics required to identify a filesystem type. The modules are shared objects loaded by libfstyp. Libfstyp modules are located in subdirectories of the /usr/lib/fs directory. Subdirectory name defines the name of the filesystem. Each module must export functions fstyp_mod_init, fstyp_mod_fini, fstyp_mod_ident and fstyp_mod_get_attr. All these functions map directly to the respective libfstyp interfaces. fstyp_mod_dump() is optional. It can be used to output unformatted information about the filesystem. This function is used by the fstyp(1M) command when the -v option is specified. fstyp_mod_dump() is not recommended and should only be used in legacy modules. FILES /usr/lib/fs/ Default module directory. /usr/lib/fs//fstyp.so Default path to a libfstyp module for filesystem. ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |____________________________|______________________________| | Interface Stability | Evolving | |____________________________|______________________________| | MT-Level | MT-Safe | |____________________________|______________________________| SEE ALSO fstyp(1M), libfstyp(3LIB), fstyp_strerror(3FSTYP), attributes(5)