Re: [PATCH] scsi: sd: infer lbpme from VPD B2 when READ CAPACITY 16 lacks LBPME

Martin K. Petersen
2026-04-14T03:16:54Z

Hi Hao!

> If VPD B2 indicates LBPU (UNMAP) support, set lbpme so that
> sd_read_block_limits() and sd_discard_mode() can properly configure
> discard.

If a storage device vendor can not be trusted to fill out the most basic
protocol fields correctly, how can they be trusted to safeguard your
data?

You can create a udev rule to override the provisioning_mode in sysfs.

--
Martin K. Petersen