Details
-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Lustre 2.13.0, Lustre 2.14.0
-
None
-
3
-
9223372036854775807
Description
It is not possible to set "--comp-flags=prefer" in the default or regular file layout since patch https://review.whamcloud.com/33784 "LU-10070 lod: SEL: Layout sanity checking" landed in commit v2_12_55-84-g4eca26ddab.
The function "llapi_layout_sanity_cb()" is imposing a false constraint that LCME_FL_PREF_RW cannot be set on non-FLR files:
/* The component flags can be set by users at creation/modification time. */ #define LCME_USER_COMP_FLAGS (LCME_FL_PREF_RW | LCME_FL_NOSYNC | \ LCME_FL_EXTENSION) : if (args->lsa_flr) { if (comp->llc_flags & ~LCME_USER_COMP_FLAGS) args->lsa_rc = LSE_FLAGS; } else { if (comp->llc_flags & ~LCME_FL_EXTENSION) args->lsa_rc = LSE_FLAGS; } }