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.25->1.26 (perseant)
details: https://anonhg.NetBSD.org/src/rev/da5d291a35cb
branches: netbsd-1-4
changeset: 469066:da5d291a35cb
user: perry <perry%NetBSD.org@localhost>
date: Fri Jun 25 20:51:00 1999 +0000
description:
pullup 1.25->1.26 (perseant)
diffstat:
sys/ufs/lfs/lfs_inode.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r de566c1933db -r da5d291a35cb sys/ufs/lfs/lfs_inode.c
--- a/sys/ufs/lfs/lfs_inode.c Fri Jun 25 20:50:33 1999 +0000
+++ b/sys/ufs/lfs/lfs_inode.c Fri Jun 25 20:51:00 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_inode.c,v 1.22.2.1 1999/04/13 21:33:55 perseant Exp $ */
+/* $NetBSD: lfs_inode.c,v 1.22.2.2 1999/06/25 20:51:00 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -167,8 +167,9 @@
if (lastseg != -1) { \
LFS_SEGENTRY(sup, fs, lastseg, sup_bp); \
if (num > sup->su_nbytes) { \
- panic("lfs_truncate: negative bytes in segment %d\n", \
- lastseg); \
+ printf("lfs_truncate: negative bytes: segment %d short by %d\n", \
+ lastseg, num - sup->su_nbytes); \
+ panic("lfs_truncate: negative bytes"); \
sup->su_nbytes = 0; \
} else \
sup->su_nbytes -= num; \
Home |
Main Index |
Thread Index |
Old Index