Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-8017 obd: report correct health state of a node
[fs/lustre-release.git]
/
lustre
/
tests
/
llapi_hsm_test.c
diff --git
a/lustre/tests/llapi_hsm_test.c
b/lustre/tests/llapi_hsm_test.c
index
54c3495
..
1d90e60
100644
(file)
--- a/
lustre/tests/llapi_hsm_test.c
+++ b/
lustre/tests/llapi_hsm_test.c
@@
-20,12
+20,16
@@
* GPL HEADER END
*/
* 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:
/* 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
*/
/* 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_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);
hur->hur_user_item[0].hui_extent.length = -1;
rc = llapi_fd2fid(fd, &hur->hur_user_item[0].hui_fid);
@@
-1024,7
+1029,7
@@
static void process_args(int argc, char *argv[])
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
- char fsname[8];
+ char fsname[8
+ 1
];
int rc;
process_args(argc, argv);
int rc;
process_args(argc, argv);