- Method filesystem_stat
Returns a mapping describing the properties of the filesystem containing the path specified by
If a filesystem cannot be determined
0(zero) will be returned.
Otherwise a mapping(string:int) with the following fields will be returned:
Size in bytes of the filesystem blocks.
Size of the entire filesystem in blocks.
Number of free blocks in the filesystem.
Number of available blocks in the filesystem. This is usually somewhat less than the
"bfree"value, and can usually be adjusted with eg tunefs(1M).
Total number of files (aka inodes) allowed by this filesystem.
Number of free files in the filesystem.
Number of available files in the filesystem. This is usually the same as the
"ffree"value, and can usually be adjusted with eg tunefs(1M).
Name assigned to the filesystem. This item is not available on all systems.
Type of filesystem (eg
"nfs"). This item is not available on all systems. For some more uncommon filesystems this may be an integer representing the magic number for the filesystem type (cf statfs(2) on eg Linux systems).
Please note that not all members are present on all OSs.
- See also