panic: mdconfig on an iso file mounted on smbfs
Tim Robbins
tjr at FreeBSD.ORG
Mon Jun 9 03:39:34 PDT 2003
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);
More information about the freebsd-current
mailing list