[LU-17263] 'lfs find -blocks' should use 512-byte sectors by default Created: 05/Nov/23  Updated: 29/Dec/23  Resolved: 20/Dec/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Bug Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The "lfs find -blocks" argument should be in 512-byte units by default to better match the bahevior of "find(1)", to make usage more portable between the two. If a unit is specified, then this will still use the specified units.

For most cases this change will not be significant as users/scripts typically specify a suffix (e.g. "-blocks 16M"), and this will be unaffected. At worst, it will find files using 1/2 as much space as before.



 Comments   
Comment by Gerrit Updater [ 05/Nov/23 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/52993
Subject: LU-17263 utils: 'lfs find -blocks' to use 512-byte units
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 5a815162e547019930cb3730d69826cca00cd5e4

Comment by Gerrit Updater [ 05/Nov/23 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/52994
Subject: LU-17263 utils: 'lfs find -size' to use 512-byte blocks
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d7fe1f55cb727431482a305e81f4a5e67c547560

Comment by Gerrit Updater [ 18/Nov/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/52993/
Subject: LU-17263 utils: 'lfs find -blocks' to use 512-byte units
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 869ea3211d2f15d7c674bc10e5f1a3272e44504e

Comment by Gerrit Updater [ 20/Dec/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/52994/
Subject: LU-17263 utils: 'lfs find -size' to use 512-byte units
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c00e72b938c2f927d91f21acae5943aa4b214898

Comment by Peter Jones [ 20/Dec/23 ]

landed for 2.16

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