Deallocated read behavior
The interface-defined data or error returned when a host reads a deallocated logical block.
In NVMe 1.4a, DLFEAT describes deallocated data values and DULBE controls the supported deallocated/unwritten-block error. This concerns the logical interface, not direct inspection of physical media. DLFEAT is not a Boolean zero-read flag, and support for DULBE is not its current enablement. [1]
In NVM Command Set 1.1, a successful Dataset Management command need not deallocate the requested blocks. For blocks actually deallocated or unwritten, supported and enabled DULBE causes a read error. Otherwise, DRB in DLFEAT reports all-00h or all-FFh data; when DRB is zero (not reported), this revision allows either pattern. Subsequent reads remain deterministic until a write. These guarantees do not apply to ranges merely submitted for deallocation. [4]
Relations
- related
- Discard, TRIM, SCSI UNMAP, NVMe, Data sanitization, NVMe DLFEAT, NVMe DULBE, NVMe Write Zeroes
Limitations
- Linux discard_zeroes_data always returns zero and should not be used to infer readback semantics. [2]
Citations
- NVM Express 1.4a: sections 6.7, 6.7.1.1 and Figure 247
- Linux 6.12: stable sysfs block ABI, discard attributes
- NVM Express NVM Command Set 1.1: Dataset Management, sections 3.3.3 and 3.3.3.2.1