Re: [PATCH 2/3] scsi_debug: Make the READ CAPACITY response compliant with ZBC

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

 



On 7/12/22 09:33, Bart Van Assche wrote:
> On 7/11/22 16:19, Damien Le Moal wrote:
>> Note that I think this entire patch could be reduced to just doing this:
>>
>> 	if (devip->zmodel == BLK_ZONED_HM) {
>> 		/* Set RC BASIS = 1 */
>> 		arr[12] |= 0x01 << 4;
>> 	}
>>
>> No ?
> 
> Hi Damien,
> 
> The above looks valid to me from the point-of-view of the ZBC-spec. 
> However, reducing patch 2/3 to the above would reduce the number of code 
> paths in the sd_zbc.c code that can be triggered with the scsi_debug driver.

You lost me... I do not understand what you are trying to say here.
You patch as is repeatedly sets devid->rc_basis to one for every zone in
the zone initialization loop. Not a big problem, but not necessary either.

> 
> Thanks,
> 
> Bart.


-- 
Damien Le Moal
Western Digital Research



[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