1Unix::Statgrab::sg_fs_sUtsaetrs(C3o)ntributed Perl DocumUennitxa:t:iSotnatgrab::sg_fs_stats(3)
2
3
4
6 Unix::Statgrab::sg_fs_stats - container for libstatgrab filesystem
7 statistics
8
10 "Unix::Statgrab::sg_fs_stats" is a Perl package name providing
11 accessors to bundled libstatgrab sg_fs_stats <http://www.i-
12 scream.org/libstatgrab/docs/sg_get_fs_stats.3.html> filesystem
13 statistics.
14
16 nentries
17 Returns the number of entries in the container.
18
19 systime
20 Returns the seconds since Epoch (0:00:00 on January, 1st 1970) of the
21 time measure the filesystem statistics.
22
23 as_list
24 Deprecated alias of "fetchall_hash"
25
26 fetchall_hash
27 Returns all records from sg_fs_stats <http://www.i-
28 scream.org/libstatgrab/docs/sg_get_fs_stats.3.html> container as list
29 of hash containing each datum name as key and the datum as value.
30
31 fetchall_array
32 Returns all records from sg_fs_stats <http://www.i-
33 scream.org/libstatgrab/docs/sg_get_fs_stats.3.html> container as list
34 of arrays containing the values in following order:
35
36 (device_name fs_type mnt_point device_type size used free avail
37 total_inodes used_inodes free_inodes avail_inodes
38 io_size block_size
39 total_blocks used_blocks free_blocks avail_blocks
40 systime)
41
42 in that order without leading headline.
43
44 fetchall_table
45 Returns all records from sg_fs_stats <http://www.i-
46 scream.org/libstatgrab/docs/sg_get_fs_stats.3.html> container as list
47 of arrays containing the values in following order:
48
49 (device_name fs_type mnt_point device_type size used free avail
50 total_inodes used_inodes free_inodes avail_inodes
51 io_size block_size
52 total_blocks used_blocks free_blocks avail_blocks
53 systime)
54
55 in that order including leading headline.
56
57 fetchrow_arrayref($row = 0)
58 Returns one row as array containing values as above.
59
60 fetchall_arrayref
61 Returns all records from sg_fs_stats <http://www.i-
62 scream.org/libstatgrab/docs/sg_get_fs_stats.3.html> container as array
63 of arrays without header.
64
65 fetchrow_hashref($row = 0)
66 Returns one row as hash containing "{ device_name =>
67 $self.device_name($row), fs_type => ... }".
68
69 fetchall_hashref
70 Returns all records from sg_fs_stats <http://www.i-
71 scream.org/libstatgrab/docs/sg_get_fs_stats.3.html> container as array
72 of hashes.
73
74 colnames
75 Returns list of column names: "(device_name fs_type mnt_point
76 device_type size used free avail total_inodes used_inodes free_inodes
77 avail_inodes io_size block_size total_blocks used_blocks free_blocks
78 avail_blocks systime)"
79
80 device_name
81 Name of the device the filesystem statistics belong to
82
83 device_canonical
84 Canonical name of the device the filesystem statistics belong to
85
86 fs_type
87 Filesystem type (as string), e.g. "zfs"
88
89 mnt_point
90 Path name of mount point for the file system
91
92 device_type
93 Bitwise combination of "sg_fs_regular sg_fs_special sg_fs_loopback
94 sg_fs_remote", usually one of
95
96 size
97 Size of filesystem, in bytes
98
99 used
100 Used bytes of filesystem
101
102 free
103 Free bytes in filesystem
104
105 avail
106 Available bytes in filesystem (free - reserved)
107
108 total_inodes
109 Total number of inodes in filesystem
110
111 used_inodes
112 Used number of inodes in filesystem
113
114 free_inodes
115 Free number of inodes in filesystem
116
117 avail_inodes
118 Available inodes in filesystem (free - reserved)
119
120 io_size
121 Optimal size for I/O for this filesystem in bytes
122
123 block_size
124 Size of blocks in bytes
125
126 total_blocks
127 Total number of blocks in filesystem
128
129 used_blocks
130 Used number of blocks in filesystem
131
132 free_blocks
133 Free number of blocks in filesystem
134
135 avail_blocks
136 Available blocks in filesystem (free - reserved)
137
138 get_fs_stats_diff
139 Provides the difference between the last measurement and the recent
140 one.
141
142 $recent->get_fs_stats_diff($last);
143
145 sg_fs_unknown sg_fs_regular sg_fs_special sg_fs_loopback sg_fs_remote
146 sg_fs_local sg_fs_alltypes
147
149 Jens Rehsack, <rehsack AT cpan.org>
150
152 Copyright (C) 2012-2018 by Jens Rehsack
153
154 This library is free software; you can redistribute it and/or modify it
155 under the terms of the GNU Lesser General Public License as published
156 by the Free Software Foundation; either version 2.1 of the License, or
157 (at your option) any later version.
158
159
160
161perl v5.38.0 2023-07-21 Unix::Statgrab::sg_fs_stats(3)