1fstyp_get_attr(3FFiSlTeYPS)ystem Type Identification Library Fufnscttyipo_ngset_attr(3FSTYP)
2
3
4
6 fstyp_get_attr - get file system attributes
7
9 cc [ flag... ] file... -lfstyp -lnvpair [ library... ]
10 #include <libnvpair.h>
11 #include <libfstyp.h>
12
13 int fstyp_get_attr(fstyp_handle_t handle, nvlist_t **attrp);
14
15
17 handle Opaque handle returned by fstyp_ident(3FSTYP).
18
19
20 attrp Address to which the name-pair list is returned.
21
22
24 The fstyp_get_attr() function returns a name-value pair list of various
25 attributes for an identified file system. This function can be called
26 only after a successful call to fstyp_ident().
27
28
29 Each file system has its own set of attributes. The following
30 attributes are generic and are returned when appropriate for a particu‐
31 lar file system type:
32
33 gen_clean (DATA_TYPE_BOOLEAN_VALUE)
34
35 Attribute for which true and false values are allowed. A false
36 value is returned if the file system is damaged or if the file sys‐
37 tem is not cleanly unmounted. In the latter case, fsck(1M) is
38 required before the file system can be mounted.
39
40
41 gen_guid (DATA_TYPE_STRING)
42
43 Globally unique string identifier used to establish the identity of
44 the file system.
45
46
47 gen_version (DATA_TYPE_STRING)
48
49 String that specifes the file system version.
50
51
52 gen_volume_label (DATA_TYPE_STRING)
53
54 Human-readable volume label string used to describe and/or identify
55 the file system.
56
57 Attribute names associated with specific file systems should not
58 start with gen_.
59
60
62 The fstyp_get_attr() function returns 0 on success and an error value
63 on failure. See fstyp_strerror(3FSTYP).
64
66 See attributes(5) for descriptions of the following attributes:
67
68
69
70
71 ┌─────────────────────────────┬─────────────────────────────┐
72 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
73 ├─────────────────────────────┼─────────────────────────────┤
74 │Interface Stability │Evolving │
75 ├─────────────────────────────┼─────────────────────────────┤
76 │MT-Level │MT-Safe │
77 └─────────────────────────────┴─────────────────────────────┘
78
80 fstyp_ident(3FSTYP), fstyp_mod_init(3FSTYP), fstyp_strerror(3FSTYP),
81 libfstyp(3LIB), attributes(5)
82
83
84
85SunOS 5.11 20 Jun 2006 fstyp_get_attr(3FSTYP)