From: Henri Doreau <[email protected]> Fixed several defects in the HSM posix copytool. - Fixed two invalid format strings. - Made --daemon optional. - Remove .lov entries from the archive when removing the corresponding files. - When restoring a file for which no LOV EA has been saved we must not create the volatile with O_LOV_DELAY_CREATE. Additionally, the caller should be able to specify the MDT index where to create the volatile file. Added parameters to llapi_hsm_action_begin() accordingly.
Lustre-change: http://review.whamcloud.com/7237 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3693 Signed-off-by: Henri Doreau <[email protected]> Reviewed-by: John L. Hammond <[email protected]> Reviewed-by: Jinshan Xiong <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: Peng Tao <[email protected]> Signed-off-by: Andreas Dilger <[email protected]> --- .../lustre/lustre/include/lustre/lustreapi.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lustre/lustreapi.h b/drivers/staging/lustre/lustre/include/lustre/lustreapi.h index 0bb3c9f..e6ce238 100644 --- a/drivers/staging/lustre/lustre/include/lustre/lustreapi.h +++ b/drivers/staging/lustre/lustre/include/lustre/lustreapi.h @@ -307,11 +307,12 @@ extern int llapi_hsm_copytool_unregister(struct hsm_copytool_private **priv); extern int llapi_hsm_copytool_recv(struct hsm_copytool_private *priv, struct hsm_action_list **hal, int *msgsize); extern void llapi_hsm_action_list_free(struct hsm_action_list **hal); -extern int llapi_hsm_action_begin(struct hsm_copyaction_private **hcp, - const struct hsm_copytool_private *ct_priv, +extern int llapi_hsm_action_begin(struct hsm_copyaction_private **phcp, + const struct hsm_copytool_private *ct, const struct hsm_action_item *hai, + int restore_mdt_index, int restore_open_flags, bool is_error); -extern int llapi_hsm_action_end(struct hsm_copyaction_private **hcp, +extern int llapi_hsm_action_end(struct hsm_copyaction_private **phcp, const struct hsm_extent *he, int flags, int errval); extern int llapi_hsm_action_progress(struct hsm_copyaction_private *hcp, -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

