Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/ufs/lfs pullup 1.21->1.22 (perseant)
details: https://anonhg.NetBSD.org/src/rev/d2f98115b5e2
branches: netbsd-1-4
changeset: 469064:d2f98115b5e2
user: perry <perry%NetBSD.org@localhost>
date: Fri Jun 25 20:50:09 1999 +0000
description:
pullup 1.21->1.22 (perseant)
diffstat:
sys/ufs/lfs/lfs_alloc.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r 85598719b8b1 -r d2f98115b5e2 sys/ufs/lfs/lfs_alloc.c
--- a/sys/ufs/lfs/lfs_alloc.c Fri Jun 25 20:49:37 1999 +0000
+++ b/sys/ufs/lfs/lfs_alloc.c Fri Jun 25 20:50:09 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_alloc.c,v 1.18.2.2 1999/04/16 23:10:07 perseant Exp $ */
+/* $NetBSD: lfs_alloc.c,v 1.18.2.3 1999/06/25 20:50:09 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -350,13 +350,13 @@
#endif /* DIAGNOSTIC */
if (old_iaddr != LFS_UNUSED_DADDR) {
LFS_SEGENTRY(sup, fs, datosn(fs, old_iaddr), bp);
+#ifdef DIAGNOSTIC
if (sup->su_nbytes < DINODE_SIZE) {
+ printf("lfs_vfree: negative byte count (segment %d short by %d)\n", datosn(fs, old_iaddr), DINODE_SIZE - sup->su_nbytes);
+ panic("lfs_vfree: negative byte count");
sup->su_nbytes = DINODE_SIZE;
-#ifdef DIAGNOSTIC
- panic("lfs_vfree: negative byte count (segment %d)\n",
- datosn(fs, old_iaddr));
-#endif /* DIAGNOSTIC */
}
+#endif
sup->su_nbytes -= DINODE_SIZE;
(void) VOP_BWRITE(bp);
}
Home |
Main Index |
Thread Index |
Old Index