On Sat, Aug 29, 2015 at 10:18 PM, ToddAndMargo <[log in to unmask]> wrote:
> Rats!

I poked around the kernel source code a bit and confirmed my suspicion
that the kernel/SCSI driver determines if the device is
write-protected by performing a series of tests. These tests basically
involve querying the SCSI mode pages from the device.

You should be able to query the same information in userspace by using
tools bundled in the sg3_utils package.

You might want to try sginfo -a /dev/sdc.

Brandon Vincent