atime not set on directory reads
Hello reiserfs folks,
I'm just in the process of running some POSIX conformance tests on Linux (test available at http://www.opengroup.org/testing/lsb-fhs/)
and reiserfs fails one test where ext2/ext3 are passing.
The test checks whether atime is updated on a directory if you do a directory lookup. I imagine that it is as simple as adding a call UPDATE_ATIME(inode) to the reiserfs directory lookup. This can, of course, be turned off at runtime via the "noatime" mount option (I think newer kernels also have a newer "nodiratime").
Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/
Quoted 11 lines · Andreas Dilger
Hello reiserfs folks,
I'm just in the process of running some POSIX conformance tests on Linux (test available at http://www.opengroup.org/testing/lsb-fhs/)
and reiserfs fails one test where ext2/ext3 are passing.The test checks whether atime is updated on a directory if you do a directory lookup. I imagine that it is as simple as adding a call
UPDATE_ATIME(inode)to the reiserfs directory lookup. This can, of course, be turned off at runtime via the "noatime" mount option (I think newer kernels also have a newer "nodiratime").
Quoted 10 lines
Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/
I often have thoughts that we should have an atime option, and make noatime the default.....
Thanks for finding this, Oleg will respond in the morning...
Signature · 1 line
Hans
Hello!
Can you please state kernel version? Bugreports are very useful when combined with version of kernel used.
Anyway problem looking like exactly what you describe was fixed in 2.4.19-pre3 or thereabout, so can you please also test with some recent 2.4.19-pre kernel?
Thank you for the report.
Bye,
Oleg
Quoted 17 lines · Andreas Dilger
Hello reiserfs folks,
I'm just in the process of running some POSIX conformance tests on Linux (test available at http://www.opengroup.org/testing/lsb-fhs/)
and reiserfs fails one test where ext2/ext3 are passing.The test checks whether atime is updated on a directory if you do a directory lookup. I imagine that it is as simple as adding a call
UPDATE_ATIME(inode)to the reiserfs directory lookup. This can, of course, be turned off at runtime via the "noatime" mount option (I think newer kernels also have a newer "nodiratime").Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/
Quoted 6 lines · Oleg Drokin
Can you please state kernel version? Bugreports are very useful when combined with version of kernel used.
Anyway problem looking like exactly what you describe was fixed in 2.4.19-pre3 or thereabout, so can you please also test with some recent 2.4.19-pre kernel?
Sorry about that. I tested with 2.4.18, so it is probably fixed already. I'm not planning on a kernel upgrade right now, but I'll let you know if it is still broken when I do upgrade.
Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/