Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 1998 10:12:49 -0400 (EDT)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        archer@lucky.net, bde@zeta.org.au, current@FreeBSD.ORG, luoqi@watermarkgroup.com
Subject:   Re: New softupdates code panics
Message-ID:  <199808111412.KAA27035@lor.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
> >> The same here. My system paniced two times for some 4 hours after
> >> I've booted kernel with Kirk's patches. The system was not very
> >> busy, just ordinary mail/news reception (it is home computer).
> >> 
> >Change the expression ``newparent ? newparent : doingdirectory'' in Kirk's
> >patch to ``doingdirectory && newparent ? newparent : doingdirectory''.
> >(for file ufs/ufs/ufs_vnops.c)
> 
> Um, this expression is equivalent to ``doingdirectory'', which is the
> same as the unpatched expression.  General fuzzy reasoning suggests that
> the expression should be ``doingdirectory && !newparent''.
> 
> Bruce
> 
newparent is not a boolean, and neither is the expression, they are integers.
The expression used to be boolean, but now we want it to have three states:
0, 1, and >1, with the third state be doingdirectory && newparent. You could
write the expression as ``doingdirectory && newparent ? 2 : doingdirectory''.

-lq

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808111412.KAA27035>