From a272224fba787e5057c8b9ddc061fb5fc14c7d54 Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 15 Oct 1997 07:32:45 +0000 Subject: IN_HASHED goes in the in-core flags ip->i_flag, not in the on-disk flags ip->i_flags. Rev.1.18 completely broke ufs. My root directory went away about 10 seconds after booting. I think file system damage was null, since IN_HASHED = 0x80 is not used in the disk flags (it would probably be UF_SOMETHING if it were used). --- sys/ufs/ufs/ufs_ihash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ufs/ufs_ihash.c b/sys/ufs/ufs/ufs_ihash.c index 8d41313..a34e8c8 100644 --- a/sys/ufs/ufs/ufs_ihash.c +++ b/sys/ufs/ufs/ufs_ihash.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ufs_ihash.c 8.7 (Berkeley) 5/17/95 - * $Id: ufs_ihash.c,v 1.10 1997/10/14 18:46:47 phk Exp $ + * $Id: ufs_ihash.c,v 1.11 1997/10/14 18:51:07 phk Exp $ */ #include @@ -131,7 +131,7 @@ ufs_ihashins(ip) simple_lock(&ufs_ihash_slock); ipp = INOHASH(ip->i_dev, ip->i_number); LIST_INSERT_HEAD(ipp, ip, i_hash); - ip->i_flags |= IN_HASHED; + ip->i_flag |= IN_HASHED; simple_unlock(&ufs_ihash_slock); } @@ -143,8 +143,8 @@ ufs_ihashrem(ip) struct inode *ip; { simple_lock(&ufs_ihash_slock); - if (ip->i_flags & IN_HASHED) { - ip->i_flags &= ~IN_HASHED; + if (ip->i_flag & IN_HASHED) { + ip->i_flag &= ~IN_HASHED; LIST_REMOVE(ip, i_hash); #ifdef DIAGNOSTIC ip->i_hash.le_next = NULL; -- cgit v1.1