|
|
NAME
fs - Display the superblock information for a ufs file system.
SYNOPSIS
fs address
DESCRIPTION
The fs macro takes one argument, that of a ufs buffer address.
It displays information about the superblock of the given ufs
filesystem.
There are a few ways to obtain the correct address to give this macro. The easiest is to run the uinode macro and then use the 'fs' address.
Another method is to first run the vfsw macro to obtain the PDATA address, then use 'dl (PDATA address)' where the second word is a pointer to a buf structure. Using this address, run the buf macro which in turn has a field "addr" which is used as an argument for fs.
These structures are defined in /usr/include/sys/fs/ufs_fs.h.
Typical output looks like this:
S> fs D15F5000 fs name / fs_sblkno 10 fs_cblkno 18 fs_dblkno 110 fs_cgoffset 34 fs_cgmask FFFFFFF8 fs_time 31EA098B Mon Jul 15 03:04:11 1996 fs_size 4AFCA fs_dsize 465B8 fs_ncg 4A fs_bsize 1000 fs_fsize 400 fs_frag 4 fs_minfree A fs_rotdelay 0 fs_rps 3C fs_bmask FFFFF000 fs_fmask FFFFFC00 fs_bshift C fs_fshift A fs_maxcontig 1 fs_maxbpg 100 fs_fragshift 2 fs_fsbtodb 1 fs_sbsize 800 fs_csmask FFFFFF00 fs_csshift 8 fs_nindir 400 fs_inopb 20 fs_nspf 2 fs_optim 0 fs_state 5E72D81A fs_id[0] 0 fs_id[1] 0 fs_csaddr 110 fs_cssize 800 fs_cgsiz 800 fs_ntrak 5 fs_nsect 68 fs_spc 208 fs_ncyl 49E fs_cpg 10 fs_ipg 7A0 fs_fpg 1040 fs_cstotal_cs_ndir 5E0 fs_cstotal_cs_nbfree 6EE1 fs_cstotal_cs_nifree 176E5 fs_cstotal_cs_nffree 1256 fs_fmod 79 fs_clean 0 fs_ronly 0 fs_flags 0 fs_fsmnt name: / fs_cgrotor 2F fs_cpc 1 fs_magic 11954