Misc. Reference Manual Pages fstyp_get_attr(3FSTYP) NAME fstyp_get_attr - get filesystem attributes SYNOPSIS cc [ flag... ] file... -lfstyp -lnvpair [ library... ] #include #include int fstyp_get_attr(fstyp_handle_t handle, nvlist_t **attrp); handle Opaque handle returned by fstyp_init(3FSTYP) attrp Address where the name-pair list is returned. fstyp_get_attr() returns a name-value pair list of various attributes for an identified filesystem. This function can only be called after a successful call to fstyp_ident(). Each filesystem has its own set of attributes. The following attributes are generic and may be returned should they make sense for the particular filesystem type: gen_clean (DATA_TYPE_BOOLEAN_VALUE) Allowed values are "true" and "false". If the value is "false", the file system is damaged or was not unmounted cleanly and fsck(1M) is required before this file system can be mounted. gen_guid (DATA_TYPE_STRING) Globally unique identifier. A string that uniquely identifies the file system. gen_version (DATA_TYPE_STRING) A string describing the file system version. gen_volume_label (DATA_TYPE_STRING) Volume label, a human-readable string used to describe and/or identify the file system. ERRORS fstyp_get_attr() returns 0 on success and an error value on failure. See fstyp_strerror(3FSTYP). ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |____________________________|______________________________| | Interface Stability | Evolving | |____________________________|______________________________| | MT-Level | MT-Safe | |____________________________|______________________________| SEE ALSO libfstyp(3LIB), fstyp_ident(3FSTYP), fstyp_strerror(3FSTYP), fstyp_mod_init(3FSTYP), attributes(5)