Re: [PATCH] sd: disable logical block provisioning if 'lbpme' is not set

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

 



Jean,

> When evaluating the 'block limits' VPD page we need to check if the
> 'lbpme' (logical block provisioning management enable) bit is set in
> the READ CAPACITY (16) output.  If it isn't we can safely assume that
> we cannot use DISCARD on this device.

That's not entirely correct. We still support devices which predate
logical block provisioning getting standardized in SBC. These devices
are typically driven by the zeroing method and don't have LBPME, nor the
LBP VPD page to key off of. Instead they are triggered by setting the
provisioning_mode via udev.

I am not sure how many of these are still around, I am hoping very
few. But I'd prefer to not break anything.

Can you describe the specific problem your patch is aiming to address?

-- 
Martin K. Petersen	Oracle Linux Engineering



[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