Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src deprecate fs_fscktime; we never used it.



details:   https://anonhg.NetBSD.org/src/rev/8a59721e0c40
branches:  trunk
changeset: 514463:8a59721e0c40
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Sep 03 14:52:17 2001 +0000

description:
deprecate fs_fscktime; we never used it.

in an effort to maintain compatibility with freebsd/openbsd/whatever,
i'm attempting to get the superblock format in sync, and freebsd uses
the int32_t at this position for `fs_pendinginodes'.

if we ever decide to implement fscktime functionality, we'll:
a) make sure to liaise with the other projects to reserve the same
   spare field
b) actually implement the code this time ...

(this is also preparing us for other changes, like the new dirpref code)

diffstat:

 sbin/fsck_ffs/setup.c   |  5 ++---
 sys/ufs/ffs/ffs_bswap.c |  3 +--
 sys/ufs/ffs/fs.h        |  5 ++---
 3 files changed, 5 insertions(+), 8 deletions(-)

diffs (62 lines):

diff -r b57512a19b8b -r 8a59721e0c40 sbin/fsck_ffs/setup.c
--- a/sbin/fsck_ffs/setup.c     Mon Sep 03 14:39:08 2001 +0000
+++ b/sbin/fsck_ffs/setup.c     Mon Sep 03 14:52:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setup.c,v 1.46 2001/09/02 01:58:31 lukem Exp $ */
+/*     $NetBSD: setup.c,v 1.47 2001/09/03 14:52:18 lukem Exp $ */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)setup.c    8.10 (Berkeley) 5/9/95";
 #else
-__RCSID("$NetBSD: setup.c,v 1.46 2001/09/02 01:58:31 lukem Exp $");
+__RCSID("$NetBSD: setup.c,v 1.47 2001/09/03 14:52:18 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -578,7 +578,6 @@
 {
 
        asb->fs_firstfield = sb->fs_firstfield;
-       asb->fs_fscktime = sb->fs_fscktime;
        asb->fs_unused_1 = sb->fs_unused_1;
        asb->fs_time = sb->fs_time;
        asb->fs_cstotal = sb->fs_cstotal;
diff -r b57512a19b8b -r 8a59721e0c40 sys/ufs/ffs/ffs_bswap.c
--- a/sys/ufs/ffs/ffs_bswap.c   Mon Sep 03 14:39:08 2001 +0000
+++ b/sys/ufs/ffs/ffs_bswap.c   Mon Sep 03 14:52:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_bswap.c,v 1.11 2001/08/17 02:18:48 lukem Exp $     */
+/*     $NetBSD: ffs_bswap.c,v 1.12 2001/09/03 14:52:17 lukem Exp $     */
 
 /*
  * Copyright (c) 1998 Manuel Bouyer.
@@ -77,7 +77,6 @@
                n32[i] = bswap32(o32[i]);
 
        n->fs_cpc = bswap32(o->fs_cpc);
-       n->fs_fscktime = bswap32(o->fs_fscktime);
        n->fs_contigsumsize = bswap32(o->fs_contigsumsize);
        n->fs_maxsymlinklen = bswap32(o->fs_maxsymlinklen);
        n->fs_inodefmt = bswap32(o->fs_inodefmt);
diff -r b57512a19b8b -r 8a59721e0c40 sys/ufs/ffs/fs.h
--- a/sys/ufs/ffs/fs.h  Mon Sep 03 14:39:08 2001 +0000
+++ b/sys/ufs/ffs/fs.h  Mon Sep 03 14:52:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fs.h,v 1.18 2001/09/02 01:58:31 lukem Exp $    */
+/*     $NetBSD: fs.h,v 1.19 2001/09/03 14:52:17 lukem Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -234,8 +234,7 @@
        int32_t *fs_maxcluster; /* max cluster in each cyl group */
        int32_t  fs_cpc;                /* cyl per cycle in postbl */
        int16_t  fs_opostbl[16][8];     /* old rotation block list head */
-       int32_t  fs_sparecon[49];       /* reserved for future constants */
-       int32_t  fs_fscktime;           /* last time fsck(8)ed */
+       int32_t  fs_sparecon[50];       /* RESERVED for future constants */
        int32_t  fs_contigsumsize;      /* size of cluster summary array */
        int32_t  fs_maxsymlinklen;      /* max length of an internal symlink */
        int32_t  fs_inodefmt;           /* format of on-disk inodes */



Home | Main Index | Thread Index | Old Index