History

libnvdimm, namespace: make min namespace size 4K

The arbitrary 4MB minimum namespace size turns out to be too large for some environments. Quoting Cheng-mean Liu: In the case of emulated NVDIMM devices in the VM environment, there are scenarios that NVDIMM device with much smaller sizes are desired, for example, we might use a single enumerated NVDIMM DAX device for representing each container layer, which in some cases could be just a few KBs size. PAGE_SIZE is the minimum where we can still support DAX of at least a single page.

Dan Williams committed 8 years ago

Commit f2ba5a51 parent 0fb5c8d1 file · +1 −1Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/ndctl.h+1−1
@@ -209,7 +209,7 @@ enum nd_driver_flags { · 208 unmodified lines
209};209};
210 210
211enum {211enum {
212 ND_MIN_NAMESPACE_SIZE = 0x00400000,212 ND_MIN_NAMESPACE_SIZE = PAGE_SIZE,
213};213};
214 214
215enum ars_masks {215enum ars_masks {