Whamcloud - gitweb
LU-5757 hsm: strengthen checks for flags and archive id 37/13337/9
authorBruno Faccini <bruno.faccini@intel.com>
Sat, 10 Jan 2015 11:33:49 +0000 (12:33 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 25 Mar 2015 14:41:13 +0000 (14:41 +0000)
commit32bd5051a518c57e35f51b7f3c7f739b5ef91b25
treec345ea3ece82978457dc402bfaf58ab24d8935dd
parente2e7ea06c66d57ba214cd76e3d19420632aba8dd
LU-5757 hsm: strengthen checks for flags and archive id

Prior to this patch undefined flags bits and out of range
archive id can be set.
Also changed the concerned error handling that has been
recently added (LU-5732) as part of sanity-hsm/test_500.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I64403de4529f0214bab55c2fc13281b0a3d30a11
Reviewed-on: http://review.whamcloud.com/13337
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: frank zago <fzago@cray.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/llite/file.c
lustre/mdt/mdt_hsm.c
lustre/tests/llapi_hsm_test.c
lustre/utils/lhsmtool_posix.c
lustre/utils/liblustreapi_hsm.c