From fca0a62ccba1d374a54d23fd6d95ee2b8ddb39a4 Mon Sep 17 00:00:00 2001 From: Mohamad Chaarawi Date: Sat, 21 Sep 2019 22:05:54 +0000 Subject: [PATCH] update to new DAOS API for creating dfs containers. Signed-off-by: Mohamad Chaarawi --- src/aiori-DFS.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/aiori-DFS.c b/src/aiori-DFS.c index 2838440..eb15b2a 100755 --- a/src/aiori-DFS.c +++ b/src/aiori-DFS.c @@ -419,13 +419,12 @@ DFS_Init() { if (rc == -DER_NONEXIST) { INFO(VERBOSE_1, "Creating DFS Container ...\n"); - rc = daos_cont_create(poh, co_uuid, NULL, NULL); - if (rc == 0) { - rc = daos_cont_open(poh, co_uuid, DAOS_COO_RW, - &coh, &co_info, NULL); - } + rc = dfs_cont_create(poh, co_uuid, NULL, &coh, NULL); + if (rc) + DCHECK(rc, "Failed to create container"); + } else if (rc) { + DCHECK(rc, "Failed to create container"); } - DCHECK(rc, "Failed to create container"); } HandleDistribute(&poh, POOL_HANDLE);