@@ -16,7 +16,7 @@ static pthread_mutex_t daos_mutex = PTHREAD_MUTEX_INITIALIZER;
1616daos_handle_t poh ; /* pool handle */
1717daos_handle_t coh ; /* container handle */
1818daos_oclass_id_t cid = OC_UNKNOWN ; /* object class */
19- dfs_t * dfs ; /* dfs mount reference */
19+ dfs_t * daosfs ; /* dfs mount reference */
2020
2121struct daos_iou {
2222 struct io_u * io_u ;
@@ -184,7 +184,7 @@ static int daos_fio_global_init(struct thread_data *td)
184184 }
185185
186186 /* Mount encapsulated filesystem */
187- rc = dfs_mount (poh , coh , O_RDWR , & dfs );
187+ rc = dfs_mount (poh , coh , O_RDWR , & daosfs );
188188 if (rc ) {
189189 log_err ("Failed to mount DFS namespace: %d\n" , rc );
190190 td_verror (td , rc , "dfs_mount" );
@@ -205,7 +205,7 @@ static int daos_fio_global_cleanup()
205205 int rc ;
206206 int ret = 0 ;
207207
208- rc = dfs_umount (dfs );
208+ rc = dfs_umount (daosfs );
209209 if (rc ) {
210210 log_err ("failed to umount dfs: %d\n" , rc );
211211 ret = rc ;
@@ -336,7 +336,7 @@ static int daos_fio_get_file_size(struct thread_data *td, struct fio_file *f)
336336 if (!daos_initialized )
337337 return 0 ;
338338
339- rc = dfs_stat (dfs , NULL , file_name , & stbuf );
339+ rc = dfs_stat (daosfs , NULL , file_name , & stbuf );
340340 if (rc ) {
341341 log_err ("Failed to stat %s: %d\n" , f -> file_name , rc );
342342 td_verror (td , rc , "dfs_stat" );
@@ -387,7 +387,7 @@ static int daos_fio_open(struct thread_data *td, struct fio_file *f)
387387 flags |= O_RDONLY ;
388388 }
389389
390- rc = dfs_open (dfs , NULL , f -> file_name ,
390+ rc = dfs_open (daosfs , NULL , f -> file_name ,
391391 S_IFREG | S_IRUSR | S_IWUSR ,
392392 flags , cid , eo -> chsz , NULL , & dd -> obj );
393393 if (rc ) {
@@ -405,7 +405,7 @@ static int daos_fio_unlink(struct thread_data *td, struct fio_file *f)
405405
406406 dprint (FD_FILE , "dfs remove %s\n" , f -> file_name );
407407
408- rc = dfs_remove (dfs , NULL , f -> file_name , false, NULL );
408+ rc = dfs_remove (daosfs , NULL , f -> file_name , false, NULL );
409409 if (rc ) {
410410 log_err ("Failed to remove %s: %d\n" , f -> file_name , rc );
411411 td_verror (td , rc , "dfs_remove" );
@@ -523,15 +523,15 @@ static enum fio_q_status daos_fio_queue(struct thread_data *td,
523523
524524 switch (io_u -> ddir ) {
525525 case DDIR_WRITE :
526- rc = dfs_write (dfs , dd -> obj , & io -> sgl , offset , & io -> ev );
526+ rc = dfs_write (daosfs , dd -> obj , & io -> sgl , offset , & io -> ev );
527527 if (rc ) {
528528 log_err ("dfs_write failed: %d\n" , rc );
529529 io_u -> error = rc ;
530530 return FIO_Q_COMPLETED ;
531531 }
532532 break ;
533533 case DDIR_READ :
534- rc = dfs_read (dfs , dd -> obj , & io -> sgl , offset , & io -> size ,
534+ rc = dfs_read (daosfs , dd -> obj , & io -> sgl , offset , & io -> size ,
535535 & io -> ev );
536536 if (rc ) {
537537 log_err ("dfs_read failed: %d\n" , rc );
0 commit comments