ndctl: release v47

This release reflects the ABI of the first kernel with libnvdimm
support, v4.2.

New apis:
    ndctl_bus_cmd_new_ars_cap
    ndctl_bus_cmd_new_ars_start
    ndctl_bus_cmd_new_ars_status
    ndctl_cmd_ars_cap_get_size
    ndctl_cmd_ars_in_progress
    ndctl_cmd_ars_num_records
    ndctl_cmd_ars_get_record_addr
    ndctl_cmd_ars_get_record_len
    ndctl_namespace_disable_invalidate

Fixes:
    ndctl_btt_enable now triggers a re-scan for new btt seeds
ndctl: release v47

This release reflects the ABI of the first kernel with libnvdimm
support, v4.2.

New apis:
    ndctl_bus_cmd_new_ars_cap
    ndctl_bus_cmd_new_ars_start
    ndctl_bus_cmd_new_ars_status
    ndctl_cmd_ars_cap_get_size
    ndctl_cmd_ars_in_progress
    ndctl_cmd_ars_num_records
    ndctl_cmd_ars_get_record_addr
    ndctl_cmd_ars_get_record_len
    ndctl_namespace_disable_invalidate

Fixes:
    ndctl_btt_enable now triggers a re-scan for new btt seeds

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
8 files changed
tree: 71b9ef77f4ad280288ea0277d09e28839afe9921
  1. ccan/
  2. contrib/
  3. lib/
  4. licenses/
  5. m4/
  6. util/
  7. .gitignore
  8. autogen.sh
  9. builtin-bat.c
  10. builtin-create-nfit.c
  11. builtin-test.c
  12. builtin-xable-namespace.c
  13. builtin-xable-region.c
  14. builtin-zero-labels.c
  15. configure.ac
  16. COPYING
  17. git-version-gen
  18. Makefile.am
  19. ndctl.c
  20. ndctl.h
  21. nfit.h
  22. README.md
  23. test-blk-namespaces.h
  24. test-dpa-alloc.h
  25. test-libndctl.h
  26. test-parent-uuid.h
  27. test-pmem-namespaces.h
README.md

ndctl

Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel

Documentation

See the latest documentation for the NVDIMM kernel sub-system here:

https://git.kernel.org/cgit/linux/kernel/git/nvdimm/nvdimm.git/tree/Documentation/nvdimm/nvdimm.txt?h=libnvdimm-for-next

Unit Tests

The unit tests run by make check require the nfit_test.ko module to be loaded. To build and install nfit_test.ko:

  1. Obtain the kernel source. For example,
    git clone -b libnvdimm-for-next git://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git

  2. Configure the kernel to make some memory available to CMA (contiguous memory allocator). This will be used to emulate DAX.
    CONFIG_DMA_CMA=y
    CONFIG_CMA_SIZE_MBYTES=150
    or
    cma=150M on the kernel command line.

  3. Compile all components of the libnvdimm sub-system as modules:
    CONFIG_LIBNVDIMM=m
    CONFIG_BLK_DEV_PMEM=m
    CONFIG_ND_BLK=m
    CONFIG_ND_BTT=m

  4. Build and install the unit test enabled libnvdimm modules in the following order. The unit test modules need to be in place prior to the depmod that runs during the final modules_install
    make -C tools/testing/nvdimm/
    sudo make -C tools/testing/nvdimm/ install
    sudo make modules_install

  5. Now run make check in the ndctl source directory, or ndctl test, if ndctl was built with --enable-test.