diff options
author | mckusick <mckusick@FreeBSD.org> | 2001-03-21 04:09:01 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2001-03-21 04:09:01 +0000 |
commit | 69603157dedb4757ce880ddfc5157558441cf985 (patch) | |
tree | 6378d524f9c6f5c077153375f319c0f93a7682cf /sys/ufs/ffs/fs.h | |
parent | 39275d892cc0291136bb750a2f1191137371de42 (diff) | |
download | FreeBSD-src-69603157dedb4757ce880ddfc5157558441cf985.zip FreeBSD-src-69603157dedb4757ce880ddfc5157558441cf985.tar.gz |
Add kernel support for running fsck on active filesystems.
Diffstat (limited to 'sys/ufs/ffs/fs.h')
-rw-r--r-- | sys/ufs/ffs/fs.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h index 53d497c..4083c14 100644 --- a/sys/ufs/ffs/fs.h +++ b/sys/ufs/ffs/fs.h @@ -166,6 +166,28 @@ #define BLK_SNAP ((ufs_daddr_t)(2)) /* + * Sysctl values for the fast filesystem. + */ +#define FFS_ADJ_REFCNT 1 /* adjust inode reference count */ +#define FFS_ADJ_BLKCNT 2 /* adjust inode used block count */ +#define FFS_BLK_FREE 3 /* free range of blocks in map */ +#define FFS_DIR_FREE 4 /* free specified dir inodes in map */ +#define FFS_FILE_FREE 5 /* free specified file inodes in map */ +#define FFS_SET_FLAGS 6 /* set filesystem flags */ +#define FFS_MAXID 7 /* number of valid ffs ids */ + +/* + * Command structure passed in to the filesystem to adjust filesystem values. + */ +#define FFS_CMD_VERSION 0x05181979 /* version ID */ +struct fsck_cmd { + int version; /* version of command structure */ + int handle; /* reference to filesystem to be changed */ + off_t value; /* inode or block number to be affected */ + long size; /* amount or range to be adjusted */ +}; + +/* * Per cylinder group information; summarized in blocks allocated * from first cylinder group data blocks. These blocks have to be * read in from fs_csaddr (size fs_cssize) in addition to the |