From amistry@am-productions.biz  Mon Jul 25 05:32:30 2005
Return-Path: <amistry@am-productions.biz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2E43016A422
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Jul 2005 05:32:30 +0000 (GMT)
	(envelope-from amistry@am-productions.biz)
Received: from smtp1.fuse.net (mail-out1.fuse.net [216.68.8.174])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1D8EE43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Jul 2005 05:32:29 +0000 (GMT)
	(envelope-from amistry@am-productions.biz)
Received: from gx6.fuse.net ([66.42.172.210]) by smtp1.fuse.net
          (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP
          id <20050725053228.DFKL4201.smtp1.fuse.net@gx6.fuse.net>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Mon, 25 Jul 2005 01:32:28 -0400
Received: from bigguy.am-productions.biz ([66.42.172.210]) by gx6.fuse.net
          (InterMail vG.1.02.00.02 201-2136-104-102-20041210) with ESMTP
          id <20050725053228.QSH22079.gx6.fuse.net@bigguy.am-productions.biz>;
          Mon, 25 Jul 2005 01:32:28 -0400
Message-Id: <1122269533.0@bigguy.am-productions.biz>
Date: Mon, 25 Jul 2005 01:32:13 -0400
From: "Anish Mistry" <amistry@am-productions.biz>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Cc: harrycoin@qconline.com
Subject: Never getting dynamic hints
X-Send-Pr-Version: gtk-send-pr 0.4.4 
X-GNATS-Notify:

>Number:         84034
>Category:       kern
>Synopsis:       [patch] never getting dynamic hints after switching hints mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 25 05:40:11 GMT 2005
>Closed-Date:    Mon Aug 01 14:31:38 GMT 2005
>Last-Modified:  Mon Aug 01 14:31:38 GMT 2005
>Originator:     Anish Mistry
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
AM Productions 
>Environment:


FreeBSD littleguy.am-productions.biz 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jul 23 17:27:32 EDT 2005     amistry@littleguy.am-productions.biz:/usr/obj/usr/src/sys/LITTLEGUY  i386
>Description:
Quoting Harry Coin
"Otherwise if resource_xxx lookups get called while still in static hints
mode, and hintmode is 0, then after going to dynamic hints mode hintp_ is
not reset, and so the res_xxx routines only still look at the static hints,
they don't get any of the dynamic hints that are new or changed."
>How-To-Repeat:
>Fix:
--- subr_hints.c.patch begins here ---
--- /sys/kern/subr_hints.c.orig	Sat Jul 23 16:47:59 2005
+++ /sys/kern/subr_hints.c	Sat Jul 23 16:48:28 2005
@@ -61,6 +61,7 @@
 	char *p;
 
 	if (checkmethod) {
+		hintp = NULL;
 		switch (hintmode) {
 		case 0:		/* loader hints in environment only */
 			break;
--- subr_hints.c.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: avatar 
State-Changed-When: Mon Aug 1 14:30:10 GMT 2005 
State-Changed-Why:  
Duplicate of kern/83686. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84034 
>Unformatted:
