[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to change lightdm background in bullseye? (additional: weird stat behaviour)



On 16/06/2022 06:47, Christoph K. wrote:
Procedure:
1. touch test.txt
2. stat test.txt -> correct access time from touch
3. cat test.txt
4. stat test.txt -> access time changed due to cat - fine
5. cat test.txt
6. stat test.txt -> still the same access time as in step 4 - caching?
7. reboot
8. cat test.txt
9. stat test.txt -> STILL the same access time as in step 4 - WTF?

Expectations:
1) After a reboot there is no cache to read from.
2) The cat command accesses the file.
3) Stat shows the time of "cat" in the access time stamp.

But 3) does not happen. More precisely: It only happens sometimes.


Question 3:
Could someone please explain to me what's going on here with stat?

Looks like the relatime option, which has been the default for some time: https://www.linuxquestions.org/questions/linux-hardware-18/what-does-mount-option-relatime-4175575024/


--

Não tenha pressa, mas não perca tempo

--José Saramago

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


Reply to: