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: Fri, 07 Aug 2015 17:00:03
Message-Id: 20150807165904.GA14130@linux1.gaikai.biz
In Reply to: Re: [gentoo-dev] Re: rfc: improve file system mounting and unmounting in OpenRC by Ian Stakenvicius
1 On Fri, Aug 07, 2015 at 12:10:56PM -0400, Ian Stakenvicius wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA256
4 >
5 > On 07/08/15 11:30 AM, William Hubbs wrote:
6 > > On Thu, Aug 06, 2015 at 08:07:44PM -0400, Ian Stakenvicius wrote:
7 > >>
8 > >> Can we get "nofail" immediately in the mount -a variants of
9 > >> localmount/netmount and expand that in netmount to make the
10 > >> nfsclient dep be a "use" or a "need" depending on if it's set or
11 > >> not?? That would imo kill the existing bug that started all of
12 > >> this too.
13 > >
14 > > Sure, I can get the nofail support in pretty quick, and I think
15 > > that is a feature we should have.
16 > >
17 > > Right now, netmount is using the use dependency to make sure
18 > > network file system utilities are started before us. Because of
19 > > the all-or-nothing nature of netmount, we can't switch those
20 > > dependencies to need. It would cause netmount to fail if one of
21 > > those utilities fails to start. The use dependency is the best one
22 > > we can use at this time, and a migration path was specifically laid
23 > > out in the news item.
24 > >
25 >
26 > My thinking here is that, unless network mounts in fstab are listed as
27 > 'nofail', that netmount failing due to the dependent services not
28 > being able to start would be a valid case. Sysadmins that don't want
29 > netmount to fail no matter what would be able to use 'nofail' to
30 > ensure that happens.
31 >
32 > This is of course predicated on (1) it being a good idea, and (2)
33 > fstabinfo or whatever the check currently is that would add nfsclient
34 > to depend() could easily swap 'use' for 'need' based on the (lack of)
35 > existence of the nofail attribute in fstab.
36
37 The issue with using the need dependency is that netmount is not
38 granular enough. It mounts all types of network file systems, so if we
39 fail because nfs is a need dependency and doesn't start, no other types
40 of network file systems that use daemons will be mounted. That's what I
41 meant by all-or-nothing.
42
43 William

Attachments

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

Replies