From: Andreas Dilger Date: Thu, 13 Mar 2025 08:26:19 +0000 (-0600) Subject: LU-11971 utils: add 'lfs find -crtime' alias X-Git-Tag: 2.16.54~63 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b3435a3c67dd44fc472dbf751954a4672dae1423;p=fs%2Flustre-release.git LU-11971 utils: add 'lfs find -crtime' alias Add "-crtime" as an alias for "-btime" since this field is also commonly called file creation time. Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: Id136561ec37756caf29e20e8a548171496be0e72 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58398 Reviewed-by: Timothy Day Reviewed-by: Olaf Faaland Reviewed-by: Oleg Drokin Tested-by: jenkins Tested-by: Maloo --- diff --git a/lustre/doc/lfs-find.1 b/lustre/doc/lfs-find.1 index 352790f..0ed0bc6 100644 --- a/lustre/doc/lfs-find.1 +++ b/lustre/doc/lfs-find.1 @@ -20,7 +20,7 @@ lfs-find \- Lustre client utility to list files with specific attributes .IR N ] .br .RB [[ ! ] -.BR --btime | -B +.BR --btime | -B | --crtime .RB [ +- ]\c .IR N [ smhdwy ]] .br @@ -229,7 +229,7 @@ or .BR E bi-bytes if that suffix is given. .TP -.BR -B ", " --btime ", " --Btime +.BR -B ", " --btime ", " --Btime ", " --crtime File was created .IR N *24 hours ago, see diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index 4974b4f..fad2f37 100755 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -5691,6 +5691,7 @@ static int lfs_find(int argc, char **argv) { .val = 'b', .name = "blocks", .has_arg = required_argument }, { .val = 'B', .name = "btime", .has_arg = required_argument }, { .val = 'B', .name = "Btime", .has_arg = required_argument }, + { .val = 'B', .name = "crtime", .has_arg = required_argument }, { .val = LFS_COMP_COUNT_OPT, .name = "comp-count", .has_arg = required_argument }, { .val = LFS_COMP_COUNT_OPT,