xfs
[Top] [All Lists]

Re: lock files after crash

To: stimits@xxxxxxxxxx, "XFS: linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
Subject: Re: lock files after crash
From: Seth Mos <knuffie@xxxxxxxxx>
Date: Wed, 12 Sep 2001 09:13:06 +0200
In-reply-to: <3B9F080B.F0BBB761@xxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
At 01:00 12-9-2001 -0600, D. Stimits wrote:
I have an SMP system set to boot to X11/runlevel 5 that is RH 7.1 based
(root is XFS). I had a crash at the moment I attempted to start login as
a regular user (home is also XFS). It seems that ~/.ICEauthority is
written each session when gdm/gnome is used for the login session, and
that a check is done for whether or not .ICEauthority can be locked.
After a crash, the file is empty (this is ok, it's the metadata versus
full journal thing, it isn't an issue), since the crash occurs during
that file write. However, after coming back up, X11 will fail due to an
inability to lock the file. A question occurs here, whether lock data or
whatever information is used to determine if a file can be locked, is
part of the filesystem journaling? Or is this a separate issue that
can't be dealth with by journaling filesystems? Is there any way XFS,
coming back after a crash, can remove stale locks or bogus locks? I have
no idea if this is entirely just coincidence it occurs, or if XFS itself
can help recover under such circumstances.

Most of the time lock files are just empty files that get removed when they are done. Netscape also used to do this. But since a lock file might have 0 bytes size it will be committed to disk very fast and journaling or not the file will probably survive a reboot.

Cheers

--
Seth
Every program has two purposes one for which
it was written and another for which it wasn't
I use the last kind.


<Prev in Thread] Current Thread [Next in Thread>