Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_lfs Use the correct size for inode blocks. This c...
details: https://anonhg.NetBSD.org/src/rev/e06055fb7872
branches: trunk
changeset: 521759:e06055fb7872
user: perseant <perseant%NetBSD.org@localhost>
date: Mon Feb 04 23:41:28 2002 +0000
description:
Use the correct size for inode blocks. This caused false data checksum
mispatches to be reported on v2 filesystems.
diffstat:
sbin/fsck_lfs/pass0.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 7224b656239d -r e06055fb7872 sbin/fsck_lfs/pass0.c
--- a/sbin/fsck_lfs/pass0.c Mon Feb 04 20:26:34 2002 +0000
+++ b/sbin/fsck_lfs/pass0.c Mon Feb 04 23:41:28 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pass0.c,v 1.10 2001/11/02 05:39:10 lukem Exp $ */
+/* $NetBSD: pass0.c,v 1.11 2002/02/04 23:41:28 perseant Exp $ */
/*
* Copyright (c) 1998 Konrad E. Schroder.
@@ -336,12 +336,12 @@
break;
}
while (j < howmany(sp->ss_ninos, INOPB(fs)) && *idp == daddr) {
- bp = getddblk(daddr, fs->lfs_bsize);
+ bp = getddblk(daddr, fs->lfs_ibsize);
datap[datac++] = ((u_long *)(bp->b_un.b_buf))[0];
bp->b_flags &= ~B_INUSE;
++j;
- daddr += btofsb(&sblock, fs->lfs_bsize);
+ daddr += btofsb(&sblock, fs->lfs_ibsize);
--idp;
}
if (i < sp->ss_nfinfo) {
Home |
Main Index |
Thread Index |
Old Index