Whamcloud - gitweb
LU-12027 utils: fix "lfs find -amctime" comparison 58/34658/2
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 27 Feb 2019 09:25:23 +0000 (02:25 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Apr 2019 03:38:09 +0000 (03:38 +0000)
commit3b9d1acfc73a30162cc1eb4c6e2878004af19d19
treef0732633959261f1ef360cb01fe40882e3fb13f7
parentb0d162390ad63d9dff12295a19022f3152592f7c
LU-12027 utils: fix "lfs find -amctime" comparison

For matches that are "equal" to the specified time, they must match
within the smallest unit specified.  For example, "-mtime 24h" would
match anything within 1h of 24h ago, similar to how "-size 100M" will
match anything within 1MB of 100MB.

Test-Parameters: trivial fstype=zfs
Fixes: 355c8a529a3a ("LU-12027 utils: add units to 'lfs find -amctime'")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ib1eb4e626b712bb75f13b075849f959f203ebbe5
Reviewed-on: https://review.whamcloud.com/34658
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs-find.1
lustre/include/lustre/lustreapi.h
lustre/utils/lfs.c
lustre/utils/liblustreapi.c