- stripe_size = atoi(buf);
- }
-
- if (lum_file1->lmm_stripe_size != stripe_size) {
- llapi_err_noerrno(LLAPI_MSG_ERROR,
- "file1 stripe size %d != dir %d\n",
- lum_file1->lmm_stripe_size, stripe_size);
- return 8;
- }
-
- if (lum_dir != NULL)
- stripe_offset = (short int)lum_dir->lmm_stripe_offset;
- if (stripe_offset != -1) {
- for (i = 0; i < stripe_count; i++)
- if (lum_file1->lmm_objects[i].l_ost_idx !=
- (stripe_offset + i) % ost_count) {
- llapi_err_noerrno(LLAPI_MSG_WARN,
- "warning: file1 non-sequential "
- "stripe[%d] %d != %d\n", i,
- lum_file1->lmm_objects[i].l_ost_idx,
- (stripe_offset + i) % ost_count);
- }
- } else if (lum_file2 != NULL) {
- int next, idx, stripe = stripe_count - 1;
- next = (lum_file1->lmm_objects[stripe].l_ost_idx + 1) %
- ost_count;
- idx = lum_file2->lmm_objects[0].l_ost_idx;
- if (idx != next) {
- llapi_err_noerrno(LLAPI_MSG_WARN,
- "warning: non-sequential "
- "file1 stripe[%d] %d != file2 stripe[0] %d\n",
- stripe, lum_file1->lmm_objects[stripe].l_ost_idx,
- idx);
- }
- }
-
- return 0;
+ stripe_size = atoi(buf);
+ }
+
+ if (lum_file1->lmm_stripe_size != stripe_size) {
+ llapi_err_noerrno(LLAPI_MSG_ERROR,
+ "file1 stripe size %d != dir %d\n",
+ lum_file1->lmm_stripe_size, stripe_size);
+ return 8;
+ }
+
+ if (lum_dir)
+ stripe_offset = (short int)lum_dir->lmm_stripe_offset;
+ if (stripe_offset != -1) {
+ for (i = 0; i < stripe_count; i++)
+ if (lum_file1->lmm_objects[i].l_ost_idx !=
+ (stripe_offset + i) % ost_count) {
+ llapi_err_noerrno(LLAPI_MSG_WARN,
+ "warning: file1 non-sequential stripe[%d] %d != %d\n",
+ i, lum_file1->lmm_objects[i].l_ost_idx,
+ (stripe_offset + i) %
+ ost_count);
+ }
+ } else if (lum_file2) {
+ int next, idx, stripe = stripe_count - 1;
+
+ next = (lum_file1->lmm_objects[stripe].l_ost_idx + 1) %
+ ost_count;
+ idx = lum_file2->lmm_objects[0].l_ost_idx;
+ if (idx != next) {
+ llapi_err_noerrno(LLAPI_MSG_WARN,
+ "warning: non-sequential file1 stripe[%d] %d != file2 stripe[0] %d\n",
+ stripe,
+ lum_file1->lmm_objects[stripe].l_ost_idx,
+ idx);
+ }
+ }
+
+ return 0;