Gentoo Archives: gentoo-dev

From: "Daniel Campbell (zlg)" <zlg@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: improve file system mounting and unmounting in OpenRC
Date: Tue, 28 Jul 2015 02:25:30
Message-Id: 55B6E810.7060807@gentoo.org
In Reply to: [gentoo-dev] rfc: improve file system mounting and unmounting in OpenRC by William Hubbs
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 07/27/2015 03:26 PM, William Hubbs wrote:
5 > All,
6 >
7 > I have been looking over this bug for some time attempting to find
8 > a good solution [1].
9 >
10 > The original proposal is to add a "want" dependency which would
11 > work like "need" but would not fail if the services wanted did not
12 > start [2].
13 >
14 > I agree that the "want" dependency is a valid feature request.
15 > However, I believe there is a better way to handle the issue in the
16 > original bug. Basically, I want to follow the suggestion in this
17 > bug instead [3].
18 >
19 > My concern about the original proposal is that it will make
20 > netmount try to start all daemons that handle file systems, whether
21 > or not they are actually necessary.
22 >
23 > The proposal in [3], on the other hand, is to create a mount script
24 > that works like netifrc. It would mount a single file system, which
25 > would be determined by the link it was called from, much like how
26 > netifrc determines which interface to work on.
27 >
28 > Some of the advantages of this approach are listed in the bug. Here
29 > are a few more I can think of.
30 >
31 > - it will eliminate some of our incompatibilities with busybox [4]
32 > [5].
33 >
34 > - It will give us honest reports of success or failure with regard
35 > to mounting file systems (netmount and localmount can't do that).
36 >
37 > - Currently, we have to skip over certain file systems that we
38 > can't unmount during shutdown. With the new approach, if the mount
39 > script mounts a file system during boot, it will be able to unmount
40 > the same filesystem during shutdown, so that will eliminate more
41 > complexity in our mount/unmount handling.
42 >
43 > The one down side of the new approach is the migration away from
44 > netmount and localmount. I I will need to keep them as wrappers for
45 > a release or two so we can fix all of our other services that have
46 > dependencies on them.
47 >
48 > I'll also work on making the transition as smooth as possible for
49 > our users. I believe I'll be able to set up the initial symlinks
50 > for the multiplexed mount script based on fstab contents
51 > automatically, but I'm not sure about how much more automation I'll
52 > be able to do. I will automate more as I come across ways to do so,
53 > and I am open to suggestions for how to do so.
54 >
55 > Let me know what you think.
56 >
57 > William
58 >
59 > [1] https://bugs.gentoo.org/show_bug.cgi?id=537996 [2]
60 > https://bugs.gentoo.org/show_bug.cgi?id=406021 [3]
61 > https://bugs.gentoo.org/show_bug.cgi?id=426944 [4]
62 > https://bugs.gentoo.org/show_bug.cgi?id=468600 [5]
63 > https://bugs.gentoo.org/show_bug.cgi?id=468604
64 >
65 What would a migration be like? For example, I manage filesystems
66 exclusively through fstab (to my knowledge). Would this be useful for,
67 say, mounting over the network? What would managing FSes with openrc
68 look like?
69
70 - --
71 Daniel Campbell - Gentoo Developer
72 OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
73 fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6
74 -----BEGIN PGP SIGNATURE-----
75 Version: GnuPG v2
76
77 iQIcBAEBCAAGBQJVtugMAAoJEAEkDpRQOeFwBcUQAMb8I39T8ie4S6BWN3+dQ3FC
78 GlzTaTTVn3cghMsjD956T3pwnKVp7Nak4FOEZj19LAciulP+++/me+pIEYMioR5x
79 3d8237OCgAmSAFk5/ej1wHdQrVR8rOcwgxtqtYLs77RJDwJ1/eMfmlbBzBTpdE8O
80 bmEuVHCJdxvKbp+ZUjka6BTYr7rzpU5w+wUW9SWR3CBW4a1E3JKs9XurGt9JUmTa
81 l1h2Ftw0xZkKXvKt6pJ7obBTrA7fXcuWw/hgvWz4iyofQlsvSmkC+GmIL/nstZMs
82 bBgkTv8idtSNoGZebtM7jxdzIpUnn6j9rZcpo0J5ZQdEDt4xkw6YtfsrMH1mPmI8
83 2KYzKw/hesVtOtWgyEJvbRbIrrTKA+rKoIxx928dMHVJBqn2/LJa0QUn/oGFaOcX
84 P/5UzzXdDJlbQYKRGH/xU1d5hu/B3DGI6MTgfsGjgr7Bn5+W8PZhO9zcKKJwjxn0
85 Fl0MD5ibp759ESr07YcjqKOHr0vurc1/Ww9xn9s/gdvcMQxCdzKp/olo3GOxCi66
86 TjU25hTbUOA6ZuQe/n3zZ+I/ud/uPYbVX6hdT/oNaiCob3PR6zH6/cc8FuVAEryV
87 jqEVrIvnbN+CTi1DTIPAFOPq5PcOvO7NHCLXYqcS3gXH/JEIq0U2+BWdx13s4Whz
88 Run8YkWYZjNl4Fz2a+oA
89 =7yuO
90 -----END PGP SIGNATURE-----

Replies