Whamcloud - gitweb
LU-3507 tests: fix sanity test_60a to check run-llog.sh on mgs
[fs/lustre-release.git] / lustre / tests / multiop.c
index b1a157d..8b83c17 100644 (file)
@@ -73,6 +73,7 @@ char usage[] =
 "       D  open(O_DIRECTORY)\n"
 "       f  statfs\n"
 "       F  print FID\n"
+"       H[num] create HSM released file with num stripes\n"
 "       G gid get grouplock\n"
 "       g gid put grouplock\n"
 "       K  link path to filename\n"
@@ -320,6 +321,17 @@ int main(int argc, char **argv)
                                 exit(save_errno);
                         }
                         break;
+               case 'H':
+                       len = atoi(commands+1);
+                       fd = llapi_file_open(fname, O_CREAT | O_WRONLY,
+                               0644, 0, 0, len,
+                               LOV_PATTERN_RAID0 | LOV_PATTERN_F_RELEASED);
+                       if (fd == -1) {
+                               save_errno = errno;
+                               perror("create stripe file");
+                               exit(save_errno);
+                       }
+                       break;
                case 'K':
                        oldpath = POP_ARG();
                        if (oldpath == NULL)