File modification time


#1

I recently moved my music collection from a local hard drive on Windows XP to a networked attached storage device. The device is a ReadyNAS 600, the OS of which is based on some variant of Linux.

In Mp3tag I have 'Preserve file modification time when saving tags' unchecked. When operating on files on a local drive the modification times are updated correctly, but they're not being updated at all on the NAS.

Any ideas of why this would be? When I use another program, say Notepad to edit a text file, then the file modification is updated on the NAS.

When the above option is disabled does Mp3tag do anything explicit to change the modification time, or is up to the operating system? How does Mp3tag preserve the modification time when this option is enabled?


#2

It's a flag in the FAT as far as I know. If it doesn't work try to "touch" the files.


#3

I may try touch.

What is the FAT?


#4

It's the file allocation table which AFAIK also contains information about attributes like read-only, archived... For NTFS, there is no FAT but MFT (Master File Table).


#5

Ok, but I don't get what you mean about a flag. Are you talking about an 'archive' flag? I'm talking about the modification date/time.

What I'm asking is how is whether Mp3tag normally does anything other than simply open the file, write to it, then close it whenever 'Preserve modification time' is not set. And what it does to preserve the time when that option is set.

The file system on the NAS is ext3 under Linux and Windows uses CIFS to access it across the network.


#6

The modification time is also stored in the FAT/MFT as time stamp.

I guess that MP3Tag uses the SetFileTime API from kernel32.dll to mess with that time stamp.