[Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Dec 4 17:19:48 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224037
--- Comment #23 from Andriy Gapon <avg at FreeBSD.org> ---
(In reply to Scott Long from comment #22)
Scott,
I envisioned that g_disk_access would act on the WP bit and I am not sure if
using d_getattr there would be really convenient as it requires setting up a
bio, etc.
On the other hand, I think that it would be nice to expose the write-protect
status via a GEOM attribute for other uses.
Another question is whether it should scsi_da code that queries the WP bit or
whether it should be scsi_xpt. Right now dagetattr is short-circuited to
xpt_getattr. But it doesn't have to be, of course.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-scsi
mailing list