mbox series

[ndctl,0/2] ndctl: Cross-arch compatible namespace alignment

Message ID 158042414995.3946705.2742716492944802875.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
Headers show
Series ndctl: Cross-arch compatible namespace alignment | expand

Message

Dan Williams Jan. 30, 2020, 10:42 p.m. UTC
A follow-up to the region-align kernel enabling, [1], update ndctl to
enumerate region alignment, and update the unit tests to account for the
kernel's default compatible alignment.

Given that changing the default is a surefire way to create incompatible
namespaces I do not think it makes sense to plumb region alignment
through the create-namespace interface. Only expert users would be
expected to trawl through sysfs and set a non-default alignment. I.e.
the lack of documentation and enabling for setting this value in the
ndctl man pages is deliberate.

---

Dan Williams (2):
      ndctl/region: Support ndctl_region_{get,set}_align()
      ndctl/namespace: Improve namespace action failure messages


 ndctl/lib/libndctl.c   |   35 ++++++++++++++++++++
 ndctl/lib/libndctl.sym |    2 +
 ndctl/libndctl.h       |    2 +
 ndctl/list.c           |    5 +++
 ndctl/namespace.c      |   82 ++++++++++++++++++++++++++++++++----------------
 test/blk_namespaces.c  |    1 +
 test/dpa-alloc.c       |   10 +++++-
 test/dsm-fail.c        |    5 ++-
 test/libndctl.c        |   10 +++++-
 test/parent-uuid.c     |    1 +
 10 files changed, 121 insertions(+), 32 deletions(-)