Whamcloud - gitweb
LU-1338 hsm: HSM flags feature
authorAurelien Degremont <aurelien.degremont@cea.fr>
Mon, 14 Jan 2013 22:43:54 +0000 (23:43 +0100)
committerOleg Drokin <green@whamcloud.com>
Wed, 30 Jan 2013 22:45:10 +0000 (17:45 -0500)
commitc42b426c87c3d3b1dc9eda612cc831293dc80d68
treeefaf070c025f13656a0131517b79d43cdae12844
parent0f3e9eec19548e3fe9452ddd603810ff41aa1588
LU-1338 hsm: HSM flags feature

This extends lustre_hsm_attrs struct in MDD to store HSM per-file
information. It adds infrastructure (function, RPCs, ...) to read and
modify it, from MDT code or from user-space on clients through llapi
and lfs command.

This patch implements:
- lfs hsm_state
- lfs hsm_set
- lfs hsm_clear

matching llapi functions:
- llapi_hsm_state_get()
- llapi_hsm_state_set()

matching mdt functions:
- mdt_hsm_state_get()
- mdt_hsm_state_set()

and MDS RPC:
- MDS_HSM_STATE_GET
- MDS_HSM_STATE_SET

Signed-off-by: Aurelien Degremont <aurelien.degremont@cea.fr>
Signed-off-by: JC Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Change-Id: Ic8f82ddc9a56206307c2e5be2523fb7ce42b8638
Reviewed-on: http://review.whamcloud.com/3035
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
30 files changed:
lustre/doc/Makefile.am
lustre/doc/lfs-hsm.1 [new file with mode: 0644]
lustre/doc/lfs.1
lustre/doc/llapi_hsm_state_get.3 [new file with mode: 0644]
lustre/doc/llapi_hsm_state_set.3 [new file with mode: 0644]
lustre/doc/lustreapi.7
lustre/include/lustre/lustre_idl.h
lustre/include/lustre/lustre_user.h
lustre/include/lustre/lustreapi.h
lustre/include/lustre_req_layout.h
lustre/include/md_object.h
lustre/llite/file.c
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_hsm.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_mds.c
lustre/mdt/mdt_open.c
lustre/ptlrpc/layout.c
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/wiretest.c
lustre/tests/Makefile.am
lustre/tests/sanity-hsm.sh [new file with mode: 0644]
lustre/tests/test-groups/regression
lustre/utils/lfs.c
lustre/utils/liblustreapi_hsm.c
lustre/utils/req-layout.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c