DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

fsstat(ADM)


fsstat -- report whether a filesystem needs checking

Syntax

/etc/fsstat bdev

Description

fsstat reports on the status of the filesystem on the block special file bdev.

During system startup, bcheckrc(ADM) and mountall(ADM) use fsstat to determine if a filesystem needs checking before it is mounted.

For the root filesystem, fsstat succeeds (exits with value 0) if the filesystem is active and does not need checking (it is not marked dirty). For non-root filesystems, fsstat succeeds if the filesystem is unmounted and does not need checking.

Exit values

fsstat has the following exit codes:

0
for the root filesystem, this means that it is mounted and does not need to be checked; for non-root filesystems, the filesystem is not mounted and does not need to be checked

1
the filesystem is not mounted and needs to be checked

2
the filesystem is mounted

3
the command failed

Limitations

fsstat does not work on DOS or HS filesystems, and it is not intended for use on remote filesystem types such as NFS and NUCFS.

Files


/etc/fscmd.d/fstyp/fsstat
versions of fsstat for each filesystem type

See also

bcheckrc(ADM), filesys(F), filesystem(FP), fsck(ADM), fstyp(ADM), mountall(ADM)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003