FSTYP_IDENT(3FSTYP) | File System Type Identification Library Functions | FSTYP_IDENT(3FSTYP) |
fstyp_ident - identify file system attributes
cc [ flag... ] file... -lfstyp -lnvpair [ library... ] #include <libnvpair.h> #include <libfstyp.h> int fstyp_ident(fstyp_handle_t handle, const char *fstyp,
const char **ident);
handle
fstype
ident
The fstyp_ident() function attempts to identify a file system associated with the handle. If the function succeeds, the file system name is returned in the ident pointer.
If fstype is NULL, the fstyp_ident() function tries all available identification modules. If fstype is other than NULL, fstyp_ident() tries only the module for the file system type which is specified.
The fstyp_ident() function returns 0 on success and an error value on failure. See fstyp_strerror(3FSTYP).
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Evolving |
MT-Level | MT-Safe |
fstyp_init(3FSTYP), fstyp_mod_init(3FSTYP), fstyp_strerror(3FSTYP), libfstyp(3LIB), attributes(7)
June 20, 2006 | OmniOS |