[LU-13721] "lfs find --pool" does not work for PFL files Created: 27/Jun/20  Updated: 04/Jul/20  Resolved: 04/Jul/20

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

Type: Bug Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: LTS12, easy

Issue Links:
Duplicate
duplicates LU-13140 find_check_pool() bug with component ... Resolved
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Running "lfs find --pool <pool_name>" on a PFL or FLR file does not actually find files that contain that pool:

# lfs setstripe -E 16M --pool audio -c 1 -E eof -c -1 /myth/tmp/tmp/pflfile-onepool
# lfs getstripe /myth/tmp/tmp/pflfile-onepool
/myth/tmp/tmp/pflfile-onepool
  lcm_layout_gen:    2
  lcm_mirror_count:  1
  lcm_entry_count:   2
    lcme_id:             1
    lcme_mirror_id:      0
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   16777216
      lmm_stripe_count:  1
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: 2
      lmm_pool:          audio
      lmm_objects:
      - 0: { l_ost_idx: 2, l_fid: [0x100020000:0x2a9fd5:0x0] }

    lcme_id:             2
    lcme_mirror_id:      0
    lcme_flags:          0
    lcme_extent.e_start: 16777216
    lcme_extent.e_end:   EOF
      lmm_stripe_count:  2
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: -1
      lmm_pool:          audio
# lfs find /myth/tmp/tmp -type f --pool audio
/myth/tmp/tmp/append/foo
/myth/tmp/tmp/append/baz
/myth/tmp/tmp/pflpool


 Comments   
Comment by Gerrit Updater [ 27/Jun/20 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/39196
Subject: LU-13721 utils: fix 'lfs find --pool' for PFL files
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: fe97ba3786a2b15e92b407a6233303b264957450

Comment by Gerrit Updater [ 04/Jul/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39196/
Subject: LU-13721 utils: fix 'lfs find --pool' for PFL files
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 94441071dbadbde56442e5e2560c642cc2793274

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