Whamcloud - gitweb
LU-13918 lfs: let lfs mirror extend to use prefer flag
[fs/lustre-release.git] / lustre / utils / liblustreapi_layout.c
index 87ed8c8..3f85197 100644 (file)
@@ -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;
                }
        }