Nvme specification doesn't guarantee the first namespace existence. Imsm shall use lowest one instead of first. In this patchset imsm parts responsible for reading sysfs attrs were refactored and simplified to generic routines. Imsm compatibility checks were moved to validate_geometry_imsm_container. This prevents from writing metadata to rejected drive. Mariusz Tkaczyk (4): imsm: add generic method to resolve "device" links imsm: add devpath_to_char method imsm: Limit support to the lowest namespace Manage: Call validate_geometry when adding drive to external container Manage.c | 7 ++ platform-intel.c | 179 +++++++++++++++++++++++++++--------- platform-intel.h | 8 +- super-ddf.c | 9 +- super-intel.c | 233 +++++++++++++++++++++-------------------------- 5 files changed, 256 insertions(+), 180 deletions(-) -- 2.26.2