<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hello Gluster Community,<br><br></div>I did some experiments with setting the atime in different scenarios. In scenario 2,3 and 4 I have a simple replica 2 volume with worm-file-level on<br><br></div>1. Setting atime on XFS:<br></div><i>[davids@gluster-test1 src]$ touch test<br>[davids@gluster-test1 src]$ sudo touch -a -t 197001010001 test<br>[davids@gluster-test1 src]$ stat test<br>  File: ‘test’<br>  Size: 0             Blocks: 0          IO Block: 4096   regular empty file<br>Device: fd00h/64768d    Inode: 16854052    Links: 1<br>Access: (0664/-rw-rw-r--)  Uid: ( 1000/  davids)   Gid: ( 1000/  davids)<br>Access: 1970-01-01 00:01:00.000000000 +0100<br>Modify: 2018-01-05 09:06:34.567406414 +0100<br>Change: 2018-01-05 09:10:22.656813779 +0100<br> Birth: -<br><br></i></div><i>2. Setting atime from FUSE Mount:<br>[davids@gluster-test1 gluster0]# touch test<br>[davids@fgluster-test1 gluster0]# sudo touch -a -t 197001010001 test<br>[davids@gluster-test1 gluster0]# stat test<br>  File: ‘test’<br>  Size: 0             Blocks: 0          IO Block: 131072 regular empty file<br>Device: 28h/40d    Inode: 11420445633475641741  Links: 1<br>Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)<br>Access: 2106-02-07 06:29:16.000000000 +0100<br>Modify: 2018-01-05 09:15:28.655599273 +0100<br>Change: 2018-01-05 09:15:48.744780537 +0100<br> Birth: -<br><br></i></div><i>3. Setting atime from SMB Client (mount.cifs):<br>[davids@gluster-test1 gluster0]$ touch test<br>[davids@gluster-test1 gluster0]$ sudo touch -a -t 197001010001 test<br>[davids@gluster-test1 gluster0]$ stat test<br>  File: ‘test’<br>  Size: 0             Blocks: 0          IO Block: 16384  regular empty file<br>Device: 27h/39d    Inode: 9521130001639226397  Links: 1<br>Access: (0644/-rw-r--r--)  Uid: ( 1000/  davids)   Gid: ( 1000/  davids)<br>Access: 2018-01-05 09:18:02.000000000 +0100<br>Modify: 2018-01-05 09:18:02.000000000 +0100<br>Change: 2018-01-05 09:18:01.000000000 +0100<br> Birth: -<br><br></i></div><i>So I would expect a behaviour like in scenario 1 for all scenarios. In scenario 2 the atime is jumping to the year 2106 and in scenario 3 nothing happens. Now I try this one:<br><br></i></div><i>4. Setting atime from SMB (mount.cifs) with another value</i><br><i><i>[davids@gluster-test1 gluster0]$ touch test<br>[davids@gluster-test1 gluster0]$ sudo touch -a -t 197001010101 test<br>[davids@gluster-test1 gluster0]$ stat test<br>  File: ‘test’<br>  Size: 0             Blocks: 0          IO Block: 16384  regular empty file<br>Device: 27h/39d    Inode: 9521130001639226397  Links: 1<br>Access: (0644/-rw-r--r--)  Uid: ( 1000/  davids)   Gid: ( 1000/  davids)<br>Access: 1970-01-01 01:01:00.000000000 +0100<br>Modify: 2018-01-05 09:18:02.000000000 +0100<br>Change: 2018-01-05 09:23:09.000000000 +0100<br> Birth: -<br><br></i></i></div><i><i>If I print the atime from inside of the xlator stack, there is the value of 60 seconds for this. According to scenario 4, gluster is starting to count the seconds from 1970-01-01 01:00 and not from 00:00. It seems to be that the first hour in 1970 can not be set as atime. Also scenario 2 is strange for me. What could be the reason for this? What kind of internal computing does gluster with the atime?<br><br></i></i></div><i><i>Regards<br></i></i></div><i><i>David Spisla <br></i></i><div><div><div><div><div><div><i><br><br></i><div><br></div></div></div></div></div></div></div></div>