Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-3365 lmv: support DNE with HSM.
[fs/lustre-release.git]
/
lustre
/
utils
/
liblustreapi_hsm.c
diff --git
a/lustre/utils/liblustreapi_hsm.c
b/lustre/utils/liblustreapi_hsm.c
index
4d32588
..
c4b5437
100644
(file)
--- a/
lustre/utils/liblustreapi_hsm.c
+++ b/
lustre/utils/liblustreapi_hsm.c
@@
-128,18
+128,18
@@
int llapi_hsm_copytool_start(struct hsm_copytool_private **priv, char *fsname,
ct->kuc.lk_data = ct->archives;
rc = root_ioctl(ct->fsname, LL_IOC_HSM_CT_START, &(ct->kuc), NULL,
WANT_ERROR);
ct->kuc.lk_data = ct->archives;
rc = root_ioctl(ct->fsname, LL_IOC_HSM_CT_START, &(ct->kuc), NULL,
WANT_ERROR);
- /* ignore if it was already registered on coordinator */
- if (rc == -EEXIST)
- rc = 0;
/* Only the kernel reference keeps the write side open */
close(ct->kuc.lk_wfd);
ct->kuc.lk_wfd = 0;
if (rc < 0)
/* Only the kernel reference keeps the write side open */
close(ct->kuc.lk_wfd);
ct->kuc.lk_wfd = 0;
if (rc < 0)
- goto out_
err
;
+ goto out_
kuc
;
*priv = ct;
return 0;
*priv = ct;
return 0;
+out_kuc:
+ /* cleanup the kuc channel */
+ libcfs_ukuc_stop(&ct->kuc);
out_err:
if (ct->fsname)
free(ct->fsname);
out_err:
if (ct->fsname)
free(ct->fsname);