Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Check the to-be-on-disk consistency of directori...



details:   https://anonhg.NetBSD.org/src/rev/158ae092c906
branches:  trunk
changeset: 580306:158ae092c906
user:      perseant <perseant%NetBSD.org@localhost>
date:      Mon Apr 18 23:03:08 2005 +0000

description:
Check the to-be-on-disk consistency of directories as well (correct a typo
in an earlier commit).

diffstat:

 sys/ufs/lfs/lfs_segment.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c7b626fa9ad5 -r 158ae092c906 sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Mon Apr 18 22:06:28 2005 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Mon Apr 18 23:03:08 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.160 2005/04/14 00:02:46 perseant Exp $       */
+/*     $NetBSD: lfs_segment.c,v 1.161 2005/04/18 23:03:08 perseant Exp $       */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.160 2005/04/14 00:02:46 perseant Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.161 2005/04/18 23:03:08 perseant Exp $");
 
 #ifdef DEBUG
 # define vndebug(vp, str) do {                                         \
@@ -910,7 +910,7 @@
 
        /* Check file size based on highest allocated block */
        if (((ip->i_ffs1_mode & IFMT) == IFREG ||
-            (ip->i_ffs1_mode & IFMT) == IFREG) &&
+            (ip->i_ffs1_mode & IFMT) == IFDIR) &&
            ip->i_size > ((ip->i_lfs_hiblk + 1) << fs->lfs_bshift)) {
                cdp->di_size = (ip->i_lfs_hiblk + 1) << fs->lfs_bshift;
                DLOG((DLOG_SEG, "lfs_writeinode: ino %d size %" PRId64 " -> %"



Home | Main Index | Thread Index | Old Index