X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Fliblustreapi_layout.c;h=3f851979d5cfa3a1e5728e067e884db8f07e7030;hb=cc8fb042b7aa6f4147900b739d3b8b891d1677c7;hp=87ed8c875c56765a3b6121c27450c305ad280a25;hpb=eede31251e5d3ccdfa74366dddc10f8d8b2b54cd;p=fs%2Flustre-release.git diff --git a/lustre/utils/liblustreapi_layout.c b/lustre/utils/liblustreapi_layout.c index 87ed8c8..3f85197 100644 --- a/lustre/utils/liblustreapi_layout.c +++ b/lustre/utils/liblustreapi_layout.c @@ -3179,7 +3179,8 @@ static int llapi_layout_sanity_cb(struct llapi_layout *layout, if (comp->llc_flags & ~LCME_USER_COMP_FLAGS) args->lsa_rc = LSE_FLAGS; } else { - if (comp->llc_flags & ~LCME_FL_EXTENSION) + if (comp->llc_flags & + ~(LCME_FL_EXTENSION | LCME_FL_PREF_RW)) args->lsa_rc = LSE_FLAGS; } }