I have a sata disk on module which has a hardware switch which can lock the disk from being written in a READ ONLY MODE. Is there a way to tell in software whether or not that switch has been switched to the READ ONLY mode?
I've already examined:
lsblk
smartctrl
parted
I wonder if there is an endpoint in : /sys/class/scsi_disk/ perhaps?