[LU-12027] Allow "lfs find" atime/mtime/ctime with fine-grained values Created: 27/Feb/19  Updated: 02/Mar/20  Resolved: 30/Apr/19

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

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

Issue Links:
Related
is related to LU-13314 sanity test_56ob: lfs find /mnt/lustr... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

The normal find command can only specify time arguments in terms of whole days. The MacOS find(1) man page reports the use of unit suffixes to give greater control over the time range, such as "1h" or "1d4h":

             If units are specified, this primary evaluates to true if the
             difference between the file last access time and the time find
             was started is n units.  Possible time units are as follows:

             s       second
             m       minute (60 seconds)
             h       hour (60 minutes)
             d       day (24 hours)
             w       week (7 days)
             y       year (365 days)


 Comments   
Comment by Gerrit Updater [ 03/Mar/19 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34367
Subject: LU-12027 utils: add units to "lfs find -amctime"
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 65625d20afaf4a423accaaf4c2e8abb93b1ea252

Comment by Gerrit Updater [ 13/Apr/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34367/
Subject: LU-12027 utils: add units to "lfs find -amctime"
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 355c8a529a3a33a4db38e7d05bf558397a580657

Comment by Peter Jones [ 13/Apr/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 14/Apr/19 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34658
Subject: LU-12027 utils: fix "lfs find -amctime" comparison
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: cbffbc685f496a52209582c8d74f5d8cdf59e046

Comment by Peter Jones [ 15/Apr/19 ]

Looks like there is more work to track

Comment by Gerrit Updater [ 30/Apr/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34658/
Subject: LU-12027 utils: fix "lfs find -amctime" comparison
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 3b9d1acfc73a30162cc1eb4c6e2878004af19d19

Comment by Peter Jones [ 30/Apr/19 ]

Landed for 2.13

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