
Re: ntfs-3g changes ctime and mtime on access
Hi,
Quote:
any access to any file on NTFS partition (even simple reading with cat <filename> command) modifies not only atime (access time), but also ctime (change time) and mtime (modify time).
Now I have timestamps damaged on all my photos after just watching them in thumbnails mode...
I could not reproduce this on OpenIndiana (I do not have FreeBSD). I however found an issue which might be related to what you reported :
Code:
[root@openindiana]# echo data > test
[root@openindiana]# stat test
File: ‘test’
Size: 5 Blocks: 1 IO Block: 512 regular file
Device: 4780001h/74973185d Inode: 89 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2015-10-14 10:39:02.545545000 +0200
Modify: 2015-10-14 10:39:02.549629000 +0200
Change: 2015-10-14 10:39:02.549629000 +0200
Birth: -
[root@openindiana]# cat test
data
[root@openindiana]# stat test
File: ‘test’
Size: 5 Blocks: 1 IO Block: 512 regular file
Device: 4780001h/74973185d Inode: 89 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2015-10-14 10:39:02.545545000 +0200
Modify: 2015-10-14 10:39:02.549629000 +0200
Change: 2015-10-14 10:39:02.549629000 +0200
Birth: -
Reading the file does not appear to change the access time.
Digging into this showed that the file reading is not done by ntfs-3g. The data is just fetched from cache without ntfs-3g being notified. This is a bug in the OpenIndiana fuse kernel module which is a port from the FreeBSD one.
Regards
Jean-Pierre