[LU-12984] Add --newerXY support for lfs find Created: 20/Nov/19  Updated: 28/Oct/20  Resolved: 16/Dec/19

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

Type: Improvement Priority: Minor
Reporter: Qian Yingjin Assignee: Qian Yingjin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-13665 master-2.12 interop: sanity multiple ... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

In regular "find" it is possible to specify a filename to use for a relative timestamp:

 

-newerXY reference
 Compares the timestamp of the current file with reference. The
 reference argument is normally the name of a file (and one of
 its timestamps is used for the comparison) but it may also be a
 string describing an absolute time. X and Y are placeholders
 for other letters, and these letters select which time belonging
 to how reference is used for the comparison.
 a The access time of the file reference
 B The birth time of the file reference
 c The inode status change time of reference
 m The modification time of the file reference
Some combinations are invalid; for example, it is invalid for X
 to be t. Some combinations are not implemented on all systems;
 for example B is not supported on all systems. If an invalid or
 unsupported combination of XY is specified, a fatal error
 results. Time specifications are interpreted as for the argu‐
 ment to the -d option of GNU date. If you try to use the birth
 time of a reference file, and the birth time cannot be deter‐
 mined, a fatal error message results. If you specify a test
 which refers to the birth time of files being examined, this
 test will fail for any files where the birth time is unknown.

 

We should enhance Lustre 'lfs find' to support '–newerXY' options.



 Comments   
Comment by Gerrit Updater [ 20/Nov/19 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/36806
Subject: LU-12984 utils: Add -newerXY support for lfs find
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: fa2c25cb8e2fc9531395a5bb1a232a2d07e1b291

Comment by Gerrit Updater [ 16/Dec/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36806/
Subject: LU-12984 utils: Add -newerXY support for lfs find
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 8583479b1249fa154cb0944f9a3aed43c2e549ce

Comment by Peter Jones [ 16/Dec/19 ]

Landed for 2.14

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