[LU-13395] unable to set "--comp-flags=prefer" on a new file Created: 27/Mar/20  Updated: 08/Mar/21  Resolved: 08/Mar/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.13.0, Lustre 2.14.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Andreas Dilger Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates LU-13918 lfs mirror extend command ignores flags Resolved
Related
is related to LU-10070 PFL self-extending file layout Resolved
Severity: 3
Rank (Obsolete): 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;
               }
       }


 Comments   
Comment by Andreas Dilger [ 08/Mar/21 ]

This was fixed via patch https://review.whamcloud.com/39698 "LU-13918 lfs: let lfs mirror extend to use prefer flag".

Generated at Sat Feb 10 03:00:54 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.