Different results in setting atime

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

 



Hello Gluster Community,

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

1. Setting atime on XFS:
[davids@gluster-test1 src]$ touch test
[davids@gluster-test1 src]$ sudo touch -a -t 197001010001 test
[davids@gluster-test1 src]$ stat test
  File: ‘test’
  Size: 0             Blocks: 0          IO Block: 4096   regular empty file
Device: fd00h/64768d    Inode: 16854052    Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/  davids)   Gid: ( 1000/  davids)
Access: 1970-01-01 00:01:00.000000000 +0100
Modify: 2018-01-05 09:06:34.567406414 +0100
Change: 2018-01-05 09:10:22.656813779 +0100
 Birth: -

2. Setting atime from FUSE Mount:
[davids@gluster-test1 gluster0]# touch test
[davids@fgluster-test1 gluster0]# sudo touch -a -t 197001010001 test
[davids@gluster-test1 gluster0]# stat test
  File: ‘test’
  Size: 0             Blocks: 0          IO Block: 131072 regular empty file
Device: 28h/40d    Inode: 11420445633475641741  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2106-02-07 06:29:16.000000000 +0100
Modify: 2018-01-05 09:15:28.655599273 +0100
Change: 2018-01-05 09:15:48.744780537 +0100
 Birth: -

3. Setting atime from SMB Client (mount.cifs):
[davids@gluster-test1 gluster0]$ touch test
[davids@gluster-test1 gluster0]$ sudo touch -a -t 197001010001 test
[davids@gluster-test1 gluster0]$ stat test
  File: ‘test’
  Size: 0             Blocks: 0          IO Block: 16384  regular empty file
Device: 27h/39d    Inode: 9521130001639226397  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  davids)   Gid: ( 1000/  davids)
Access: 2018-01-05 09:18:02.000000000 +0100
Modify: 2018-01-05 09:18:02.000000000 +0100
Change: 2018-01-05 09:18:01.000000000 +0100
 Birth: -

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:

4. Setting atime from SMB (mount.cifs) with another value
[davids@gluster-test1 gluster0]$ touch test
[davids@gluster-test1 gluster0]$ sudo touch -a -t 197001010101 test
[davids@gluster-test1 gluster0]$ stat test
  File: ‘test’
  Size: 0             Blocks: 0          IO Block: 16384  regular empty file
Device: 27h/39d    Inode: 9521130001639226397  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  davids)   Gid: ( 1000/  davids)
Access: 1970-01-01 01:01:00.000000000 +0100
Modify: 2018-01-05 09:18:02.000000000 +0100
Change: 2018-01-05 09:23:09.000000000 +0100
 Birth: -

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?

Regards
David Spisla



_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux