From 0aef1f631cd873fa4ee9076b4cab87e0f9156f6e Mon Sep 17 00:00:00 2001 From: Jan Michalski Date: Thu, 9 Jul 2026 22:03:36 +0100 Subject: [PATCH] DAOS-18651 ddb: err prov_mem when not md-on-ssd (#18575) Retern DER_INVAL when an invalid db path is provided to the ddb command. Test-tag: DdbTest Skip-unit-tests:true Skip-NLT: true Skip-unit-test-memcheck: true Skip-func-vm: true Skip-fault-injection-test: true Signed-off-by: Jan Michalski --- src/utils/ddb/ddb_vos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/ddb/ddb_vos.c b/src/utils/ddb/ddb_vos.c index 3101d25aa14..5e8458cbd7c 100644 --- a/src/utils/ddb/ddb_vos.c +++ b/src/utils/ddb/ddb_vos.c @@ -2151,7 +2151,8 @@ dv_run_prov_mem(const char *db_path, const char *tmpfs_mount, unsigned int tmpfs md_on_ssd = bio_nvme_configured(SMD_DEV_TYPE_META); if (!md_on_ssd) { - D_ERROR("Not in MD-on-SSD mode; skipping memory environment provisioning."); + D_ERROR("Provided db_path is not configured in MD-on-SSD mode."); + rc = -DER_INVAL; goto out; }