Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2003 20:33:55 +1000
From:      Tim Robbins <tjr@FreeBSD.ORG>
To:        Donn Miller <dmmiller@cvzoom.net>
Cc:        current@freebsd.org
Subject:   Re: panic: mdconfig on an iso file mounted on smbfs
Message-ID:  <20030609203355.A51153@dilbert.robbins.dropbear.id.au>
In-Reply-To: <3EE43394.6090802@cvzoom.net>; from dmmiller@cvzoom.net on Mon, Jun 09, 2003 at 03:13:24AM -0400
References:  <3EE43394.6090802@cvzoom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 09, 2003 at 03:13:24AM -0400, Donn Miller wrote:

> Please see the attached gdb file.  I get this panic if I have a samba 
> filesystem mounted via mount_smbfs, where an iso file resides.  When I 
> try to use mdconfig on the file, I get an immediate panic.  The exact 
> mdconfig command issued is:
> 
> mount -a -t vnode -f /smbfs/sol-9-u3-x86-v1.iso -u 0

Try this patch and let me know whether it works. It seems to fix the problem
for me, but it still panics if I try to reboot the machine without running
mdconfig -d first.

--- sys/netsmb/smb_iod.c.orig	Mon Jun  9 20:36:56 2003
+++ sys/netsmb/smb_iod.c	Mon Jun  9 20:36:27 2003
@@ -400,7 +400,8 @@
 	int error;
 
 	SMBIODEBUG("\n");
-	if (rqp->sr_cred->scr_td->td_proc == iod->iod_p) {
+	if (rqp->sr_cred->scr_td != NULL &&
+	    rqp->sr_cred->scr_td->td_proc == iod->iod_p) {
 		rqp->sr_flags |= SMBR_INTERNAL;
 		SMB_IOD_RQLOCK(iod);
 		TAILQ_INSERT_HEAD(&iod->iod_rqlist, rqp, sr_link);



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