On Mon, Nov 19, 2018 at 12:11 AM Oliver O'Halloran <oohall(a)gmail.com> wrote:
When creating a pfn or dax namespace ndctl uses a default alignment of 2MB
when the user does not explicitly supply one. This works on most systems
(x86, ARM, PPC64 with radix MMU), but it fails when the kernel does not
support a 2MB page size (PPC64 with hash MMU).
This patch makes ndctl use the alignment of the relevant seed namespace as
the default instead. The kernel will always pick a valid default alignment
so this should be a bit more portable.
Looks ok, but I'd want to try it with the unit test suite after my
comment on patch-2 is resolved.