Re: Scsi tape write protect status question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark Hounschell wrote:
> Mark Hounschell wrote:
>> Sorry to bother you all with such an easy thing. I can't figure out how
>> the
>> kernel knows I have a write protected tape in a drive that I open via
>>
>> open("/dev/st0", O_RDWR, cf_flg, 0666)
> 
> Sorry for the typo
> 
> open("/dev/st0", O_RDWR, 0666)
> 
>> Using the sgio interface I can only sense a write protect status after
>> attempting to to a write.
>> How can one know this before doing a write op?
>>

Never mind, it's in the mode-sense data.
Mark

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux