PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment) |
Contents Index |
Appendix B Reference Manual | > B.4 Miscellaneous |
#include <sys/param.h>
#include <sys/types.h>
#include <sys/fs/sfxfs_fs.h>
#include <sys/fs/sfxfs_inode.h>
The GFS Local File System resides after the first 16 sectors of each partition.
The superblock for each GFS Local File System is placed 16 sectors after the beginning of the partition and at the end of the partition.
The layout of the super-block is defined by fs structure in the header <sys/fs/sfxfs_fs.h>.
The superblock contains the basic information on the structure of the file system.
Placing the original superblock at the first part of the partition and a copy at the end of the partition helps to avoid a fatal error that would be caused by damage to the superblock.
The superblock information must be consistent among the partitions that constitute the same file system.
The following information is stored in the superblock:
fs_clean
This parameter contains information on the file system status.
FSCLEAN indicates a normally unmounted file system.
FSACTIVE indicates that the mounted file system is currently being updated.
FSSTABLE indicates that the mounted file system is idle.
FSFIX indicates that the file system is being repaired with fsck_sfxfs(1M).
FSBAD indicates that the file system contains an inconsistency.
File systems in FSCLEAN or FSSTABLE status do not have to be repaired with fsck_sfxfs(1M). If an attempt is made to mount a file system that is FSACTIVE, mount(2) in read-write enabled mode, ENOSPC is returned.
fs_minfree
fs_mminfree
The fs_minfree parameter indicates the allowed minimum ratio of free space in the data area that is available for requests from common users. The fs_mminfree parameter indicates the allowed minimum ratio of free space in the V-data area that is available for requests from common users. If the free space of the file system is lower than the ratio defined by these limits, only the super user can allocate additional area.
The default value is 10%.
fs_time
This parameter indicates the last time the superblock was written to disk.
fs_dsize
This parameter indicates the number of data blocks in each file system.
fs_isize
This parameter indicates the number of i-nodes in the file system.
fs_msize
This parameter indicates the number of V-data blocks in the file system.
fs_fdsize
This parameter indicates the number of free data blocks in the file system.
fs_fisize
This parameter indicates the number of free i-nodes in the file system.
fs_fmsize
This parameter indicates the number of free V-data blocks in the file system.
fs_optim
This parameter specifies which operation should have highest priority during area acquisition in the file system in order to reduce allocation time or fragmentation.
FS_OPTTIME places highest priority on the reduction of allocation time.
FS_OPTSPACE places highest priority on the suppression of fragmentation.
fs_fsmnt
This parameter is for recording the path name used at mounting.
fsck_sfxfs(1M), mkfs_sfxfs(1M), sfxtune(1M)
mount(2).
Contents Index |