add some verbose messages on finalize routines for DAOS and DFS drivers.

Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@intel.com>
master
Mohamad Chaarawi 2019-08-28 17:01:51 +00:00
parent b3663bd29a
commit 93730771fd
3 changed files with 17 additions and 5 deletions

View File

@ -3,7 +3,7 @@ Building
The DAOS library must be installed on the system.
./bootsrap
./bootstrap
./configure --prefix=iorInstallDir --with-daos=DIR --with-cart=DIR
One must specify "--with-daos=/path/to/daos/install and --with-cart". When that

View File

@ -306,7 +306,7 @@ DAOS_Fini()
if (rank == 0) {
uuid_t uuid;
INFO(VERBOSE_1, "Destroying Container %s", o.cont);
INFO(VERBOSE_1, "Destroying DAOS Container %s", o.cont);
uuid_parse(o.cont, uuid);
rc = daos_cont_destroy(poh, uuid, 1, NULL);
}
@ -319,12 +319,18 @@ DAOS_Fini()
}
}
if (rank == 0)
INFO(VERBOSE_1, "Disconnecting from DAOS POOL..");
rc = daos_pool_disconnect(poh, NULL);
DCHECK(rc, "Failed to disconnect from pool %s", o.pool);
MPI_CHECK(MPI_Barrier(MPI_COMM_WORLD), "barrier error");
usleep(20000 * rank);
if (rank == 0)
INFO(VERBOSE_1, "Finalizing DAOS..");
rc = daos_fini();
DCHECK(rc, "Failed to finalize daos");

View File

@ -140,7 +140,7 @@ ior_aiori_t dfs_aiori = {
do { \
int _rc = (rc); \
\
if (_rc < 0) { \
if (_rc != 0) { \
fprintf(stderr, "ERROR (%s:%d): %d: %d: " \
format"\n", __FILE__, __LINE__, rank, _rc, \
##__VA_ARGS__); \
@ -153,7 +153,7 @@ do { \
do { \
int _rc = (rc); \
\
if (_rc < 0) { \
if (_rc != 0) { \
fprintf(stderr, "ERROR (%s:%d): %d: %d: " \
format"\n", __FILE__, __LINE__, rank, _rc, \
##__VA_ARGS__); \
@ -470,12 +470,18 @@ DFS_Finalize()
if (rc)
DCHECK(rc, "Failed to destroy container %s (%d)", o.cont, rc);
daos_pool_disconnect(poh, NULL);
if (rank == 0 && verbose >= VERBOSE_1)
printf("Disconnecting from DAOS POOL\n");
rc = daos_pool_disconnect(poh, NULL);
DCHECK(rc, "Failed to disconnect from pool");
MPI_CHECK(MPI_Barrier(MPI_COMM_WORLD), "barrier error");
usleep(20000 * rank);
if (rank == 0 && verbose >= VERBOSE_1)
printf("Finalizing DAOS..\n");
rc = daos_fini();
DCHECK(rc, "Failed to finalize DAOS");
}