[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ifupdown writes to /etc... a bug?


On Tue, Mar 11, 2003 at 08:45:14AM +0100, Thomas Hood wrote:

> On Tue, 2003-03-11 at 08:10, Anthony Towns wrote:
> > On Mon, Mar 10, 2003 at 09:41:32AM -0600, Steve Langasek wrote:
> > 
> > Why did you start cc'ing Bug#84074? It is on an entirely different topic.
> #84074: ifdown: cannot work if ifstate cannot be written to
> There's a discussion about the location of ifstate file in there.
> Emile: How about calling the new directory "/run" ?
> That eliminates the implication that it has to be a ramfs.
> It also implicates a functional similarity with /var/run, which
> it does seem to have.  (/run is like /var/run but is guaranteed
> to be rw and available early.  In some cases, one of these might
> be symlinked to the other.)
> Filesystem Hierarchy Standard
> 5.10 /var/run : Run-time variable data
> This directory contains system information data describing the system
> since it was booted. Files under this directory should be cleared
> (removed or truncated as appropriate) at the beginning of the boot
> process. Programs may have a subdirectory of /var/run; this is
> encouraged for programs that use more than one run-time file.

Yes, /run is actually a very good alternative. 

OTOH, /mem/preserved is perhaps still a bit clearer than /run/preserved. 
You wouldn't know why something would use /run/preserved instead of just
something under /var, until you know that /run is on a memory filesystem
in the vast majority of cases and therefore has properties that are
different from /var.

Perhaps /mem is still more obvious; it also removes the association that
only running programs have things there. It's likely you wouldn't
consider (/var)/run immediately for things like ifstate, as you'd feel
(/var)/run to have a narrower purpose.

/var/run/program-file is hardly ever meaningful between invocations of
program. IMHO /var/run definitely has that association.

I'd be more inclined actually to move /var/run to /mem/run because of



E-Advies - Emile van Bergen           emile@e-advies.nl      
tel. +31 (0)70 3906153           http://www.e-advies.nl    

Attachment: pgpuigGvw2W7v.pgp
Description: PGP signature

Reply to: