Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Dec 2017 17:19:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-scsi@FreeBSD.org
Subject:   [Bug 224037] Kernel crashes when trying to  mount certain USB keys reported as WriteProtected
Message-ID:  <bug-224037-5312-en5C4F3LsF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224037-5312@https.bugs.freebsd.org/bugzilla/>
References:  <bug-224037-5312@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037

--- Comment #23 from Andriy Gapon <avg@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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224037-5312-en5C4F3LsF>