Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/newfs_lfs Initialize inodes' generation number to 1, co...
details: https://anonhg.NetBSD.org/src/rev/a5bf83fa4a03
branches: trunk
changeset: 499574:a5bf83fa4a03
user: perseant <perseant%NetBSD.org@localhost>
date: Thu Nov 23 23:09:57 2000 +0000
description:
Initialize inodes' generation number to 1, consistent with their version
number.
diffstat:
sbin/newfs_lfs/lfs.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 083bdc1f2d4e -r a5bf83fa4a03 sbin/newfs_lfs/lfs.c
--- a/sbin/newfs_lfs/lfs.c Thu Nov 23 23:07:30 2000 +0000
+++ b/sbin/newfs_lfs/lfs.c Thu Nov 23 23:09:57 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.c,v 1.20 2000/10/11 21:02:05 he Exp $ */
+/* $NetBSD: lfs.c,v 1.21 2000/11/23 23:09:57 perseant Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)lfs.c 8.5 (Berkeley) 5/24/95";
#else
-__RCSID("$NetBSD: lfs.c,v 1.20 2000/10/11 21:02:05 he Exp $");
+__RCSID("$NetBSD: lfs.c,v 1.21 2000/11/23 23:09:57 perseant Exp $");
#endif
#endif /* not lint */
@@ -773,6 +773,7 @@
dip->di_atime = dip->di_mtime = dip->di_ctime = lfsp->lfs_tstamp;
dip->di_atimensec = dip->di_mtimensec = dip->di_ctimensec = 0;
dip->di_inumber = ino;
+ dip->di_gen = 1;
db_per_fb = 1 << lfsp->lfs_fsbtodb;
#if 0
Home |
Main Index |
Thread Index |
Old Index