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

From: Martin K. Petersen

Date: Mon Apr 13 2026 - 23:17:03 EST



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