On 01/29/2013 11:03 AM, Nicholas A. Bellinger wrote: > So enabling emulate_write_cache=1 in the case when the underlying device > has not enabled it is incorrect. > > I'd like to enable this bit when we know the underlying device has WCE=1 > set, but currently there is not a way to determine this (generically) > from struct block_device. > > So NACK for applying this until there is a method to determine what the > hardware below is doing. This should be possible from userspace though. I'm planning on looking up underlying scsi device(s?) using libblkid, and then query the sense data using libsgutils when adding a block backstore in targetcli. It's kind of a hassle, but isn't it a huge performance win if we can enable this? Regards -- Andy -- 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