Re: [PATCH] UTC timestamp option for FAT filesystems

From: Joe Peterson
Date: Thu Jun 26 2008 - 00:25:04 EST


barry bouwsma wrote:
> I think 100% of it refers to GMT+2
> (in my present time zone), so I wonder if in different languages,
> there's a preference for casual use of the phrase GMT (a quick
> look in my dictionary shows an entry for GMT, nothing for UTC,
> but then, it has no entry for `operating system' or its translated
> equivalent.

Well, your question certainly prompted me to go and read up on it again.
In my work (unmanned space missions - solar system stuff), we deal with
many representations of time, and so I am used to being anal about it.
For example, there is GMT, UTC, TDT, ET, etc. They all differ ever so
slightly.

> --- /mnt/usr/local/src/linux-2.6.24/fs/fat/inode.c-DIST 2008-01-30 10:59:19.000000000 +0100
> +++ /mnt/usr/local/src/linux-2.6.24/fs/fat/inode.c 2008-04-13 07:09:10.000000000 +0200
> @@ -826,6 +829,9 @@ static int fat_show_options(struct seq_f
> seq_puts(m, ",showexec");
> if (opts->sys_immutable)
> seq_puts(m, ",sys_immutable");
> +/* XXX HACK */
> + if (opts->utc)
> + seq_puts(m, ",utc");
> if (!isvfat) {
> if (opts->dotsOK)
> seq_puts(m, ",dotsOK=yes");
>

Indeed! Thanks, I'll put this in the patch. The above is actually not
needed for the mount command or /etc/mtab, but it *is* used for, e.g.,
/proc/mounts.

-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/