X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Fliblustreapi_layout.c;fp=lustre%2Futils%2Fliblustreapi_layout.c;h=8cc46061e9a50f805353bd74cf1858bad3c916ba;hp=fb51e1d246999d661f17a1a47198f4486277511c;hb=958989085a54d1f2bb9e4831e7495eae4c165b8e;hpb=16264da9e3c43a6368a25b6ded4113e8cfa57427 diff --git a/lustre/utils/liblustreapi_layout.c b/lustre/utils/liblustreapi_layout.c index fb51e1d..8cc4606 100644 --- a/lustre/utils/liblustreapi_layout.c +++ b/lustre/utils/liblustreapi_layout.c @@ -3342,6 +3342,8 @@ static int llapi_layout_sanity_cb(struct llapi_layout *layout, } else if (!(comp->llc_flags & LCME_FL_EXTENSION) && (comp->llc_stripe_size != LLAPI_LAYOUT_DEFAULT)) { if (comp->llc_extent.e_end != LUSTRE_EOF && + comp->llc_extent.e_end != + comp->llc_extent.e_start && comp->llc_extent.e_end % comp->llc_stripe_size) { args->lsa_rc = LSE_ALIGN_END; goto out_err;