Whamcloud - gitweb
LU-11971 utils: add 'lfs find -crtime' alias 98/58398/3
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 13 Mar 2025 08:26:19 +0000 (02:26 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Mar 2025 04:03:48 +0000 (04:03 +0000)
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 <adilger@whamcloud.com>
Change-Id: Id136561ec37756caf29e20e8a548171496be0e72
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58398
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/lfs-find.1
lustre/utils/lfs.c

index 352790f..0ed0bc6 100644 (file)
@@ -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
index 4974b4f..fad2f37 100755 (executable)
@@ -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,