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 Pull up revision 1.46 (via patch, requested...



details:   https://anonhg.NetBSD.org/src/rev/c29e94bcd3c6
branches:  netbsd-1-4
changeset: 470103:c29e94bcd3c6
user:      he <he%NetBSD.org@localhost>
date:      Thu Jan 20 21:11:46 2000 +0000

description:
Pull up revision 1.46 (via patch, requested by perseant):
  Files removed (through unlink, rmdir) are now really removed, though the
  removal is postponed until the dirop is complete to ensure validity of
  the filesystem through a crash.  Use a separate per-fs lock, instead of
  ufs_hashlock, to protect the inode free list.  Change calling semantics
  of lfs_ifind, to give better error reporting:  If fed a struct buf, it
  can report the block number of the offending inode block as well as the
  inode number.

diffstat:

 sys/ufs/lfs/lfs_vfsops.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r e71b551cd96b -r c29e94bcd3c6 sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c  Thu Jan 20 21:11:21 2000 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c  Thu Jan 20 21:11:46 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vfsops.c,v 1.28.2.5 2000/01/15 17:52:06 he Exp $   */
+/*     $NetBSD: lfs_vfsops.c,v 1.28.2.6 2000/01/20 21:11:46 he Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -408,6 +408,7 @@
        fs->lfs_writer = 0;
        fs->lfs_dirops = 0;
        fs->lfs_seglock = 0;
+       lockinit(&fs->lfs_freelock, PINOD, "lfs_freelock", 0, 0);
 
        /* Set the file system readonly/modify bits. */
        fs->lfs_ronly = ronly;
@@ -706,7 +707,7 @@
                *vpp = NULL;
                return (error);
        }
-       ip->i_din.ffs_din = *lfs_ifind(fs, ino, (struct dinode *)bp->b_data);
+       ip->i_din.ffs_din = *lfs_ifind(fs, ino, bp);
 #ifdef LFS_ATIME_IFILE
        ip->i_ffs_atime = ts.tv_sec;
        ip->i_ffs_atimensec = ts.tv_nsec;



Home | Main Index | Thread Index | Old Index