Message ID | 20160128225223.17855.50025.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b3ac52a8a45f |
Headers | show |
diff --git a/lib/libndctl.c b/lib/libndctl.c index 22bd2c123415..1b6525035ae3 100644 --- a/lib/libndctl.c +++ b/lib/libndctl.c @@ -3372,10 +3372,10 @@ NDCTL_EXPORT int ndctl_namespace_delete(struct ndctl_namespace *ndns) case ND_DEVICE_NAMESPACE_BLK: break; default: - dbg(ctx, "%s: nstype: %d delete failed\n", + dbg(ctx, "%s: nstype: %d not deletable\n", ndctl_namespace_get_devname(ndns), ndctl_namespace_get_type(ndns)); - return -ENXIO; + return 0; } rc = namespace_set_size(ndns, 0);
Otherwise this forces callers of ndctl_namespace_delete() to filter on namespace type before calling. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- lib/libndctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)