summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/fs.h
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1997-03-23 20:08:22 +0000
committerguido <guido@FreeBSD.org>1997-03-23 20:08:22 +0000
commitc337c37259502bbcb3efde45ca7db82f927ff512 (patch)
treee2f5aeaa60774a851df745574651915a33ccf5a1 /sys/ufs/ffs/fs.h
parent8e15480d4907712b453456ae3366cfe75ea7b804 (diff)
downloadFreeBSD-src-c337c37259502bbcb3efde45ca7db82f927ff512.zip
FreeBSD-src-c337c37259502bbcb3efde45ca7db82f927ff512.tar.gz
Add generation number randomization. Newly created filesystems wil now
automatically have random generation numbers. The kenel way of handling those also changed. Further it is advised to run fsirand on all your nfs exported filesystems. the code is mostly copied from OpenBSD, with the randomization chanegd to use /dev/urandom Reviewed by: Garrett Obtained from: OpenBSD
Diffstat (limited to 'sys/ufs/ffs/fs.h')
-rw-r--r--sys/ufs/ffs/fs.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h
index df9f95a..9c9debe 100644
--- a/sys/ufs/ffs/fs.h
+++ b/sys/ufs/ffs/fs.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)fs.h 8.13 (Berkeley) 3/21/95
- * $Id$
+ * $Id: fs.h,v 1.10 1997/02/22 09:47:11 peter Exp $
*/
#ifndef _UFS_FFS_FS_H_
@@ -200,8 +200,7 @@ struct fs {
int32_t fs_npsect; /* # sectors/track including spares */
int32_t fs_interleave; /* hardware sector interleave */
int32_t fs_trackskew; /* sector 0 skew, per track */
- int32_t fs_headswitch; /* head switch time, usec */
- int32_t fs_trkseek; /* track-to-track seek, usec */
+/* fs_id takes the space of the unused fs_headswitch and fs_trkseek fields */ int32_t fs_id[2]; /* unique filesystem id */
/* sizes determined by number of cylinder groups and their sizes */
ufs_daddr_t fs_csaddr; /* blk addr of cyl grp summary area */
int32_t fs_cssize; /* size of cyl grp summary area */
OpenPOWER on IntegriCloud