Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ufs some callers of ufs_bmaparray() in LFS depend on...



details:   https://anonhg.NetBSD.org/src/rev/49718e94d66a
branches:  trunk
changeset: 517457:49718e94d66a
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Nov 13 06:23:17 2001 +0000

description:
some callers of ufs_bmaparray() in LFS depend on *nump being set to 0 for
direct blocks, so restore that behaviour.

diffstat:

 sys/ufs/ufs/ufs_bmap.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 40f7b56fdd31 -r 49718e94d66a sys/ufs/ufs/ufs_bmap.c
--- a/sys/ufs/ufs/ufs_bmap.c    Tue Nov 13 06:17:46 2001 +0000
+++ b/sys/ufs/ufs/ufs_bmap.c    Tue Nov 13 06:23:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_bmap.c,v 1.15 2001/11/10 07:11:00 chs Exp $        */
+/*     $NetBSD: ufs_bmap.c,v 1.16 2001/11/13 06:23:17 chs Exp $        */
 
 /*
  * Copyright (c) 1989, 1991, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_bmap.c,v 1.15 2001/11/10 07:11:00 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_bmap.c,v 1.16 2001/11/13 06:23:17 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -140,6 +140,8 @@
        }
 
        if (bn >= 0 && bn < NDADDR) {
+               if (nump != NULL)
+                       *nump = 0;
                *bnp = blkptrtodb(ump, ufs_rw32(ip->i_ffs_db[bn],
                    UFS_MPNEEDSWAP(vp->v_mount)));
                if (*bnp == 0)



Home | Main Index | Thread Index | Old Index