When a windows box dies and a freebsd system has a windows share mounted, the FreeBSD box will reboot upon the unmount of the mounted share (after the mount has been dead a while). Fix: Unknown. How-To-Repeat: Mount a share, firewall the windows box, wait a while and try to umount -f.
I can confirm that this is still an issue on FreeBSD 5.4-RELEASE. After doing this my system crashed: bash-2.05b# umount -fv /mnt/backup umount: /mnt/backup: statfs: RPC struct is bad //BACKUP-USER@SERVER/SHARE: unmount from /mnt/backup I had the same problem before on FreeBSD 4.9-RELEASE. Still no fix for this? Best Regards Goran
Here's another datapoint... I am running FreeBSD 7.0-RC1, and I just got a reboot on doing the mount itself (i.e. "mount_smbfs ..."). I suspect this could be the same issue. I had network connectivity at the time, but the Windows box *had* been firewalled during serveral previous attempts to mount (this is due to a recent upgrade from Windows 2000 to Windows XP Pro), resulting in timeouts. Once unfirewalled, I was then getting authentication errors because the drive on the Windows box did not have sharing enabled (Windows XP must have disabled this during upgrade). Once I got this setting changed (and while the Windows box was busy for a while setting permissions on files), I tried to mount the Windows share, causing a reboot When FreeBSD came back up, I could mount and umount fine.
Responsible Changed From-To: freebsd-bugs->freebsd-fs Over to maintainer(s).
Author: ae Date: Thu Apr 17 12:22:08 2014 New Revision: 264600 URL: http://svnweb.freebsd.org/changeset/base/264600 Log: Remove redundant unlock. This code was removed from the opensolaris and darwin's netsmb implementations, in DfBSD it also has been disabled. PR: 36566, 87859, 139407, 161579, 175557, 178412, 186652 MFC after: 2 weeks Sponsored by: Yandex LLC Modified: head/sys/netsmb/smb_iod.c Modified: head/sys/netsmb/smb_iod.c ============================================================================== --- head/sys/netsmb/smb_iod.c Thu Apr 17 12:16:51 2014 (r264599) +++ head/sys/netsmb/smb_iod.c Thu Apr 17 12:22:08 2014 (r264600) @@ -87,8 +87,6 @@ smb_iod_invrq(struct smbiod *iod) */ SMB_IOD_RQLOCK(iod); TAILQ_FOREACH(rqp, &iod->iod_rqlist, sr_link) { - if (rqp->sr_flags & SMBR_INTERNAL) - SMBRQ_SUNLOCK(rqp); rqp->sr_flags |= SMBR_RESTART; smb_iod_rqprocessed(rqp, ENOTCONN); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed