LWN.net Logo

Incomplete Procedures

Incomplete Procedures

Posted Mar 7, 2007 17:17 UTC (Wed) by zlynx (subscriber, #2285)
In reply to: Incomplete Procedures by mikeraz
Parent article: Switching your Linux systems to the new DST (Linux-Watch)

Whenever I have a choice I make /etc/localtime a symlink to the real zone file. The only case where I think /etc/localtime as a standalone file is reasonable is when you need localtime before mounting /usr. And how often does that come up?


(Log in to post comments)

Incomplete Procedures

Posted Mar 7, 2007 21:46 UTC (Wed) by jimmybgood (guest, #26142) [Link]

When I mount a file system I like to run sanity checks on the superblock information as well as check to see if enough time has passed to require a file system check. Both of these require knowledge of the local time.

So my /etc/localtime is a copy of the zoneinfo not a symlink. BTW, this is how Debian and Fedora do it.

Incomplete Procedures

Posted Mar 7, 2007 22:39 UTC (Wed) by njs (subscriber, #40338) [Link]

What are these sanity checks that require localtime? Surely your superblock, if it stores times, should be storing them in UTC?

And "check[ing] to see if enough time has passed" doesn't seem like it would need localtime either, it's actually easier to calculate time deltas using UTC than localtime?

Curiously yours,

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds