Update of bug #64857 (project findutils):
Status: None => Need Info
Assigned to: None => berny
_______________________________________________________
Follow-up Comment #1:
> [...] cannot use the tests [...]
This is rather brief and vague.
Please expand on:
- what did you try to do? -> test setup
- how did you try to do it? -> command line
- what was the outcome?
- what was your expectation?
Please provide a small reproducer.
Other than that, I see here that the -ctime/-atime tests are working as
expected:
# CTIME: no output yet.
~/tmp> find -maxdepth 1 -type f -ctime -1
# ATIME: no output yet.
~/tmp> find -maxdepth 1 -atime -1
# Read a file -> atime should change (... usually).
~/tmp> cat LICENSE > /dev/null
# Change permission bits of the file -> ctime should change.
~/tmp> chmod 0600 LICENSE
# CTIME: works.
~/tmp> find -maxdepth 1 -type f -ctime -1
./LICENSE
# ATIME: ...
~/tmp> find -maxdepth 1 -type f -atime -1
# oops, no output, why?
~/tmp> findmnt /home
TARGET
SOURCE FSTYPE OPTIONS
/home /dev/sda3 ext3 rw,noatime
# -> ATIME does not work on /home (here) because it is mounted with the
'noatime' option.
# On another file system with 'relatime' instead of 'noatime' also -atime
works:
/tmp/mpoint/tmp> find -maxdepth 1 -type f -atime -1
/tmp/mpoint/tmp> cat LICENSE >/dev/null
/tmp/mpoint/tmp> find -maxdepth 1 -type f -atime -1
./LICENSE
/tmp/mpoint/tmp> findmnt /tmp/mpoint
TARGET SOURCE FSTYPE OPTIONS
/tmp/mpoint /dev/loop1 ext4 rw,relatime
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64857>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/