whpu000625 发表于 2013-06-24 18:14

solaris文件系统的atime属性的问题

各位:

   文件系统的atime属性记录的是文件访问时间,当读取该文件的时候,该属性值就会改变。
   但是在solaris的zfs和ufs文件系统中发现,该属性值始终都没有改变   # echo "test" >test
   # ls -atime test
         4786 -rw-r--r--   1 root   root         5 Jun 24 19:12:44 2013 test
   # cat test
   test
   # ls -atime test
         4786 -rw-r--r--   1 root   root         5 Jun 24 19:12:44 2013 test请问是solaris故意的还是文件系统的bug

whpu000625 发表于 2013-06-25 11:26

本帖最后由 whpu000625 于 2013-06-25 11:27 编辑

好吧,发现用-atime显示的不是access time,还是modify time
要使用ls -lu来显示atime的值#ls -lu --full-time test
-rw-r--r--   1 root   root         0 2013-06-25 11:24:09.162879136 +0800 test
# cat test
test
# ls -lu --full-time test
-rw-r--r--+1 root   root         0 2013-06-25 11:26:31.932687029 +0800 test发现atime的值改变了
页: [1]
查看完整版本: solaris文件系统的atime属性的问题