Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/fsck_lfs write out modified directory entries to the co...



details:   https://anonhg.NetBSD.org/src/rev/0f8bd3fa95e1
branches:  trunk
changeset: 552791:0f8bd3fa95e1
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Oct 03 12:23:22 2003 +0000

description:
write out modified directory entries to the correct place.

diffstat:

 sbin/fsck_lfs/dir.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 13a754f07ce1 -r 0f8bd3fa95e1 sbin/fsck_lfs/dir.c
--- a/sbin/fsck_lfs/dir.c       Fri Oct 03 12:22:15 2003 +0000
+++ b/sbin/fsck_lfs/dir.c       Fri Oct 03 12:23:22 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dir.c,v 1.11 2003/08/07 10:04:22 agc Exp $  */
+/* $NetBSD: dir.c,v 1.12 2003/10/03 12:23:22 yamt Exp $         */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -173,7 +173,7 @@
                if (idesc->id_fix == IGNORE)
                        return (0);
                fix = dofix(idesc, "DIRECTORY CORRUPTED");
-               bread(vp, idesc->id_blkno, blksiz, NOCRED, &bp);
+               bread(vp, idesc->id_lblkno, blksiz, NOCRED, &bp);
                dp = (struct direct *) (bp->b_data + idesc->id_loc);
                dp->d_reclen = DIRBLKSIZ;
                dp->d_ino = 0;
@@ -211,7 +211,7 @@
                if (idesc->id_fix == IGNORE)
                        return 0;
                fix = dofix(idesc, "DIRECTORY CORRUPTED");
-               bread(vp, idesc->id_blkno, blksiz, NOCRED, &bp);
+               bread(vp, idesc->id_lblkno, blksiz, NOCRED, &bp);
                dp = (struct direct *) (bp->b_data + dploc);
                dp->d_reclen += size;
                if (fix)



Home | Main Index | Thread Index | Old Index