X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllapi_hsm_test.c;h=1d90e60f2867110f9a6af8636bbc805ead0324e3;hb=e1cf0bdf5df70824c92586ca46e36088e80215d5;hp=7c476545bda4468e0b3a91d3597fa6a41bb9ead8;hpb=fe2356bf5f9da5fe5800e7ec014e81f52e787dce;p=fs%2Flustre-release.git diff --git a/lustre/tests/llapi_hsm_test.c b/lustre/tests/llapi_hsm_test.c index 7c47654..1d90e60 100644 --- a/lustre/tests/llapi_hsm_test.c +++ b/lustre/tests/llapi_hsm_test.c @@ -20,12 +20,16 @@ * GPL HEADER END */ -/* Copyright 2014, 2015 Cray Inc, all rights reserved. */ +/* + * Copyright 2014, 2015 Cray Inc, all rights reserved. + * + * Copyright (c) 2015, Intel Corporation. + */ /* Some portions are extracted from llapi_layout_test.c */ /* The purpose of this test is to check some HSM functions. HSM must * be enabled before running it: - * echo enabled > /proc/fs/lustre/mdt/lustre-MDT0000/hsm_control + * lctl set_param mdt.$FSNAME-MDT0000.hsm_control=enabled */ /* All tests return 0 on success and non zero on error. The program will @@ -518,6 +522,7 @@ void helper_archiving(void (*progress) hur->hur_request.hr_flags = 0; hur->hur_request.hr_itemcount = 1; hur->hur_request.hr_data_len = 0; + hur->hur_user_item[0].hui_extent.offset = 0; hur->hur_user_item[0].hui_extent.length = -1; rc = llapi_fd2fid(fd, &hur->hur_user_item[0].hui_fid);