Re: [PATCH] UTC timestamp option for FAT filesystems

From: Joe Peterson
Date: Thu Jun 26 2008 - 12:01:32 EST


OGAWA Hirofumi wrote:
> Of course, UTC is right design for on disk format. But, this is FAT, the
> writing UTC means you modified the design of FAT. It is not a correct
> option, it is just a hack like I said, right?

I just looked at the FAT32 specification from Microsoft, and nowhere
does it say that FAT timestamps are in local time. It does not mention
local time, time standards, or time zones at all. Here it is:

http://www.microsoft.com/whdc/system/platform/firmware/fatgen.mspx

So there is nothing inherent in FAT's design or specification that
requires dates and times to be in local time. It appears it is up to
the OS or device to convey a meaning by how the timestamps are used.
For this reason, I do not consider it a hack or a design
change/violation to optionally use UTC for the timestamps on a given FAT
volume.

-Joe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/