Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: rfc: improve file system mounting and unmounting in OpenRC
Date: Wed, 05 Aug 2015 14:01:32
Message-Id: 20150805140123.GA20019@linux1
In Reply to: [gentoo-dev] Re: rfc: improve file system mounting and unmounting in OpenRC by Duncan <1i5t5.duncan@cox.net>
1 On Wed, Aug 05, 2015 at 04:50:40AM +0000, Duncan wrote:
2 > Ian Stakenvicius posted on Tue, 04 Aug 2015 17:17:51 -0400 as excerpted:
3 >
4 > > So what you are suggesting here now is that you want to (A) potentially
5 > > break mounting with the need to externally manage mounts via services in
6 > > openrc instead of just using /etc/fstab, and (B) also break services if
7 > > something doesn't start, which is one of the reasons why you wanted to
8 > > go through with this per-mount service in the first place. My point is
9 > > that no, we should keep localmount as succeeding even if one of the
10 > > dependent services fails to mount, *just like it does right now*, *for
11 > > the same reasons* as it succeeds on failure right now.
12 >
13 > +1
14 >
15 > IMO, localmount must continue to succeed /by/ /default/, even if some
16 > mounts fail, because it's basically legacy, and must maintain legacy
17 > behavior. Turning it into a wrapper "internally" is fine, but the
18 > overall localmount must still succeed, as too much depends on that
19 > behavior as it is.
20
21 Here's what I'm trying to deal with. Consider what happens if service a
22 still has "need localmount" and service b has "need mount.foo".
23
24 Mounting a file system twice causes failures the second time it is
25 mounted, so I either have to add special handling in the new mount
26 script for file systems that are already mounted or come up with a way
27 to make sure localmount runs after all instances of the new mount
28 script.
29
30 The issue with making sure all mount scripts run before localmount would
31 complicate things more for users because they would have to add the
32 mount.foo symlinks to the appropriate runlevels (boot for local file
33 systems and default for network ones).
34
35 If I did add special handling to the mount script for an already-mounted
36 file system, what should that be -- to ignore it or remount it? I'm
37 tending toward remount.
38
39 William

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies