Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sbin/newfs_lfs Pull up revisions 1.19, 1.21 (requested b...
details: https://anonhg.NetBSD.org/src/rev/3b4579b1cf63
branches: netbsd-1-5
changeset: 490624:3b4579b1cf63
user: he <he%NetBSD.org@localhost>
date: Sat Feb 03 21:47:12 2001 +0000
description:
Pull up revisions 1.19,1.21 (requested by perseant):
o Allow the user to specify a 0% free space threshold at fs
creation time with "newfs_lfs -m 0" (PR #11112).
o Initialize inodes' gen to match version.
diffstat:
sbin/newfs_lfs/lfs.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 7bb315f51347 -r 3b4579b1cf63 sbin/newfs_lfs/lfs.c
--- a/sbin/newfs_lfs/lfs.c Sat Feb 03 21:45:40 2001 +0000
+++ b/sbin/newfs_lfs/lfs.c Sat Feb 03 21:47:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.c,v 1.12.4.3 2000/10/16 21:53:27 tv Exp $ */
+/* $NetBSD: lfs.c,v 1.12.4.4 2001/02/03 21:47:12 he 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.12.4.3 2000/10/16 21:53:27 tv Exp $");
+__RCSID("$NetBSD: lfs.c,v 1.12.4.4 2001/02/03 21:47:12 he Exp $");
#endif
#endif /* not lint */
@@ -300,9 +300,7 @@
lfsp->lfs_dbpseg = ssize / DEV_BSIZE;
}
lfsp->lfs_ssize = ssize >> lfsp->lfs_bshift;
-
- if (minfree)
- lfsp->lfs_minfree = minfree;
+ lfsp->lfs_minfree = minfree;
/*
* Fill in parts of superblock that can be computed from file system
@@ -775,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