aiori-CEPHFS: don't just unmount on close, release cmount too.
Signed-off-by: Mark Nelson <mnelson@redhat.com>master
parent
efc6d49832
commit
edba70e99c
|
@ -173,7 +173,15 @@ static void CEPHFS_Init()
|
||||||
static void CEPHFS_Final()
|
static void CEPHFS_Final()
|
||||||
{
|
{
|
||||||
/* shutdown */
|
/* shutdown */
|
||||||
ceph_shutdown(cmount);
|
int ret = ceph_unmount(cmount);
|
||||||
|
if (ret < 0) {
|
||||||
|
CEPHFS_ERR("ceph_umount failed", ret);
|
||||||
|
}
|
||||||
|
ret = ceph_release(cmount);
|
||||||
|
if (ret < 0) {
|
||||||
|
CEPHFS_ERR("ceph_release failed", ret);
|
||||||
|
}
|
||||||
|
cmount = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *CEPHFS_Create(char *testFileName, IOR_param_t * param)
|
static void *CEPHFS_Create(char *testFileName, IOR_param_t * param)
|
||||||
|
@ -273,7 +281,6 @@ static void CEPHFS_Close(void *file, IOR_param_t * param)
|
||||||
CEPHFS_ERR("ceph_close failed", ret);
|
CEPHFS_ERR("ceph_close failed", ret);
|
||||||
}
|
}
|
||||||
free(file);
|
free(file);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue