freebsd-skq/sys/ufs
trasz e0aa6f81f9 When a device containing mounted UFS filesystem disappears, the type
of devvp becomes VBAD, which UFS incorrectly interprets as snapshot
vnode, which in turns causes panic.  Fix it by replacing '!= VCHR'
with '== VREG'.

With this fix in place, you should no longer be able to panic the system
by removing a device with an UFS filesystem mounted from it - assuming
you don't use softupdates.

Reviewed by:	kib
Tested by:	pho
Approved by:	rwatson (mentor)
Sponsored by:	FreeBSD Foundation
2009-02-06 17:14:07 +00:00
..
ffs When a device containing mounted UFS filesystem disappears, the type 2009-02-06 17:14:07 +00:00
ufs Fix a few style bogons. 2009-01-21 20:08:17 +00:00