History

libnvdimm/region: Introduce NDD_LABELING

The NDD_ALIASING flag is used to indicate where pmem capacity might alias with blk capacity and require labeling. It is also used to indicate whether the DIMM supports labeling. Separate this latter capability into its own flag so that the NDD_ALIASING flag is scoped to true aliased configurations. To my knowledge aliased configurations only exist in the ACPI spec, there are no known platforms that ship this support in production. This clarity allows namespace-capacity alignment constraints around interleave-ways to be relaxed.

Dan Williams committed 6 years ago

Commit a0e37451 parent 6acd7d58 files · +19 −14Browse files

Showing the changes to include/linux (1 of 8 files). Show all

Unified · Split

include/linux/libnvdimm.h+2−0
@@ -37,6 +37,8 @@ enum { · 36 unmodified lines
3737 NDD_WORK_PENDING = 4,
3838 /* ignore / filter NSLABEL_FLAG_LOCAL for this DIMM, i.e. no aliasing */
3939 NDD_NOBLK = 5,
40+ /* dimm supports namespace labels */
41+ NDD_LABELING = 6,
4042
4143 /* need to set a limit somewhere, but yes, this is likely overkill */
4244 ND_IOCTL_MAX_BUFLEN = SZ_4M,