Commit 18dfaebf authored by JC Lafoucriere's avatar JC Lafoucriere Committed by Greg Kroah-Hartman
Browse files

staging/lustre/mdt: HSM coordinator client interface

This patch implements the HSM coordinator methods
used by client to add/remove/list HSM actions on
FID.

Lustre-change: http://review.whamcloud.com/6532
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3341


Signed-off-by: default avatarJC Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Reviewed-by: default avatarJinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarPeng Tao <bergwolf@gmail.com>
Signed-off-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7cd875d2
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1121,11 +1121,10 @@ static inline int hal_size(struct hsm_action_list *hal)

	sz = sizeof(*hal) + cfs_size_round(strlen(hal->hal_fsname));
	hai = hai_zero(hal);
	for (i = 0 ; i < hal->hal_count ; i++) {
	for (i = 0; i < hal->hal_count; i++, hai = hai_next(hai))
		sz += cfs_size_round(hai->hai_len);
		hai = hai_next(hai);
	}
	return(sz);

	return sz;
}

/* Copytool progress reporting */
+1 −3
Original line number Diff line number Diff line
@@ -1919,10 +1919,8 @@ static void lustre_swab_hal(struct hsm_action_list *h)
	__swab32s(&h->hal_archive_id);
	__swab64s(&h->hal_flags);
	hai = hai_zero(h);
	for (i = 0; i < h->hal_count; i++) {
	for (i = 0; i < h->hal_count; i++, hai = hai_next(hai))
		lustre_swab_hai(hai);
		hai = hai_next(hai);
	}
}

static void lustre_swab_kuch(struct kuc_hdr *l)