17
5
I was trying to know if relatime or noatime was set on a filesystem, but i didn't found the information, neither in /etc/fstab, neither in kernel boot options.
First of all, it seems clear that i don't have the "normal" behaviour on atime:
root@antec:/tmp# rm -f test.txt; echo a>test.txt
root@antec:/tmp# stat test.txt | \grep -i 2011
Access: 2011-08-01 21:54:30.000000000 +0200
Modify: 2011-08-01 21:54:30.000000000 +0200
Change: 2011-08-01 21:54:30.000000000 +0200
root@antec:/tmp# cat test.txt > /dev/null
root@antec:/tmp# stat test.txt | \grep -i 2011
Access: 2011-08-01 21:54:53.000000000 +0200
Modify: 2011-08-01 21:54:30.000000000 +0200
Change: 2011-08-01 21:54:30.000000000 +0200
root@antec:/tmp# date
Mon Aug 1 21:55:00 CEST 2011
root@antec:/tmp# cat test.txt > /dev/null
root@antec:/tmp# stat test.txt | \grep -i 2011
Access: 2011-08-01 21:54:53.000000000 +0200 <--- atime not modified
Modify: 2011-08-01 21:54:30.000000000 +0200
Change: 2011-08-01 21:54:30.000000000 +0200
root@antec:/tmp#
I have two questions:
- Is noatime or relatime a default mount options, and if yes, from which kernel release ?
- Is there a way to see the default mount options (ie: how can i see why i don't have the "normal" atime behaviour ?)
Many questions but i think they are related. Feel free to edit the title if you have a more explicit title.
maybe ask at serverfault.com – None – 2011-08-01T20:12:09.487