linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: Kurt Roeckx <Q@ping.be>
Cc: Alex Bligh - linux-kernel <linux-kernel@alex.org.uk>,
	Riley Williams <rhw@MemAlpha.cx>, Pavel Machek <pavel@suse.cz>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: PROBLEM: Linux updates RTC secretly when clock synchronizes
Date: Wed, 7 Nov 2001 09:24:15 +0000	[thread overview]
Message-ID: <20011107092415.A24654@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.21.0111062347080.16087-100000@Consulate.UFP.CX> <812671195.1005093860@[195.224.237.69]> <20011107020137.A1887@ping.be>
In-Reply-To: <20011107020137.A1887@ping.be>; from Q@ping.be on Wed, Nov 07, 2001 at 02:01:37AM +0100

On Wed, Nov 07, 2001 at 02:01:37AM +0100, Kurt Roeckx wrote:
> On Wed, Nov 07, 2001 at 12:44:21AM -0000, Alex Bligh - linux-kernel wrote:
> > --On Wednesday, 07 November, 2001 12:00 AM +0000 Riley Williams 
> > <rhw@MemAlpha.cx> wrote:
> > 
> > >  2. The kernel makes no internal reference to the /dev/rtc driver,
> > >     and it is left to userland tools to sync to the RTC on boot,
> > >     and at other times as required.
> > 
> > I think the kernel should set the machine time to the RTC time
> > as an initializer on boot. Other than that, I agree.
> 
> Which is something you do from userspace.

One problem with that approach is the things in kernel that need to be
initialised to a random value, such that on two consecutive boots, the
values are different.  Currently, that's NFS XIDs.  As Linux currently
stands, running on some embedded machines where there is no real time
clock, you can hit the possibility of file corruption if you happen to
reboot the machine twice in within two minutes - non-Linux NFS servers
could well be longer.

With your proposed change, you'd be inflicting that pain on all NFS root
machines, even ones with RTCs, so may I suggest that if you're thinking
about removing the RTC stuff that you also think of a way of solving this
problem at the same time?

--
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


  parent reply	other threads:[~2001-11-07  9:25 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-31  0:33 PROBLEM: Linux updates RTC secretly when clock synchronizes Ian Maclaine-cross
2001-10-31  1:05 ` Kurt Roeckx
2001-10-31  2:55   ` Ian Maclaine-cross
2001-10-31 11:52     ` Kurt Roeckx
2001-11-01  0:52       ` Riley Williams
2001-11-01  1:26         ` Kurt Roeckx
2001-11-01 13:57         ` Alex Bligh - linux-kernel
2001-11-02  9:50           ` Riley Williams
2001-11-03 11:41             ` Alex Bligh - linux-kernel
2001-11-03 18:35               ` Riley Williams
2001-11-03 19:19                 ` Alex Bligh - linux-kernel
2001-11-03 21:04                 ` Kurt Roeckx
2001-11-06 10:01                 ` Pavel Machek
2001-11-06  9:57             ` Pavel Machek
2001-11-02 12:16 ` Pavel Machek
2001-11-05 23:08   ` Riley Williams
2001-11-06 10:17     ` Pavel Machek
2001-11-07  0:00       ` Riley Williams
2001-11-07  0:44         ` Alex Bligh - linux-kernel
2001-11-07  1:01           ` Kurt Roeckx
2001-11-07  1:15             ` Alex Bligh - linux-kernel
2001-11-07  9:24             ` Russell King [this message]
2001-11-08 12:26         ` Pavel Machek
2001-11-08 23:00           ` Riley Williams
2001-11-09  9:32             ` Pavel Machek
2001-11-09 21:11               ` Riley Williams
2001-11-09 21:30                 ` Pavel Machek
2001-11-09 22:54                   ` Riley Williams
2001-11-09 23:10                     ` Mark Zealey
2001-11-10 20:04                     ` Pavel Machek
2001-11-10 20:35                       ` Riley Williams
2001-11-10 20:43                         ` Pavel Machek
2001-11-10 20:49                         ` Doug McNaught
2001-11-06  0:20   ` Ian Maclaine-cross
2001-11-06 10:18     ` Pavel Machek
2001-11-08  5:09       ` Ian Maclaine-cross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011107092415.A24654@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=Q@ping.be \
    --cc=linux-kernel@alex.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=rhw@MemAlpha.cx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).