From: Roger Leigh <rleigh@codelibre.net>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: Masatake YAMATO <yamato@redhat.com>,
kzak@redhat.com, linux-kernel@vger.kernel.org,
linux-fsdevel@vger.kernel.org, util-linux@vger.kernel.org
Subject: Re: /etc/fstab.d yes or not
Date: Fri, 20 Jan 2012 15:57:01 +0000 [thread overview]
Message-ID: <20120120155701.GL8797@codelibre.net> (raw)
In-Reply-To: <CAPXgP10uUpSQzX0RzYY24uDBkNkRXM7NbR0H6P=dZ=+LxdX3Fw@mail.gmail.com>
On Fri, Jan 20, 2012 at 03:56:43PM +0100, Kay Sievers wrote:
> On Fri, Jan 20, 2012 at 15:20, Masatake YAMATO <yamato@redhat.com> wrote:
> >>
> >> I'd like to add support for /etc/fstab.d to libmount. The library is
> >> currently used by mount, umount and mount.nfs. The goal is to use it
> >> on more places.
> >
> > I'm working on systemd to support /etc/fstab.d.
>
> It's an old glibc API, and /etc/fstab is ABI, not a service config
> file, which now can read more than one file. It's a very different
> problem. It an ABI change, not a config extension.
I think that's putting the problem a little too strongly. The
glibc API is generic: it can (and is) used to parse any file using
the fstab(5) file format; it's not restricted to only /etc/mtab
and /etc/fstab. setmntent(3) accepts any filename.
You are entirely correct that it may break the assumptions made by
some software, but it's certainly not "ABI" or even "API" breakage.
> Tools rightfully expect that they find all system mounts in that file,
> and not in some new split-up directory. In some cases, fstab is used
> to 'check if the device is not a system volume', and that will just
> break now,
The number of tools which do this is tiny, and could (if we wished)
be patched trivially to also look at the files in fstab.d.
Alternatively, glibc itself could be updated so that if e.g.
setmntent(3) is called with "/etc/fstab" as its filename argument,
it will additionally process and include the contents of
/etc/fstab.d as well. This would have the advantage of transparency
for all users of the glibc interface.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
next prev parent reply other threads:[~2012-01-20 15:57 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-20 14:04 /etc/fstab.d yes or not Karel Zak
2012-01-20 14:20 ` Masatake YAMATO
2012-01-20 14:56 ` Kay Sievers
2012-01-20 15:57 ` Roger Leigh [this message]
2012-01-20 16:08 ` Kay Sievers
[not found] ` <CAPXgP10uUpSQzX0RzYY24uDBkNkRXM7NbR0H6P=dZ=+LxdX3Fw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-01-24 0:19 ` Boaz Harrosh
[not found] ` <4F1DF90C.5070108-C4P08NqkoRlBDgjK7y7TUQ@public.gmane.org>
2012-01-24 9:47 ` bastien ROUCARIES
2012-01-20 14:43 ` Attila Kinali
[not found] ` <20120120154309.3ae5f9e4a8f55c477dc423ab-HB9FjVmMKa7tRgLqZ5aouw@public.gmane.org>
2012-01-20 14:59 ` Karel Zak
2012-01-20 15:03 ` Voelker, Bernhard
[not found] ` <20120120145907.GA20377-s5vVilr7EKH/9pzu0YdTqQ@public.gmane.org>
2012-01-20 15:20 ` Kay Sievers
[not found] ` <20120120140444.GC13157-s5vVilr7EKH/9pzu0YdTqQ@public.gmane.org>
2012-01-20 15:49 ` Roger Leigh
2012-01-20 16:13 ` Kay Sievers
[not found] ` <CAPXgP13a9v+f1uNdpe-c+aApLfLpgn15b1-gZxRPd0wMvU=B-Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-01-20 16:22 ` Roger Leigh
[not found] ` <20120120162220.GN8797-l88Q8xmqi7wqcZcGjlUOXw@public.gmane.org>
2012-01-20 17:59 ` Kay Sievers
2012-01-23 13:55 ` Theodore Tso
2012-01-23 22:07 ` Alan Cox
2012-01-24 1:06 ` Ted Ts'o
2012-01-20 18:20 ` Denys Vlasenko
2012-01-20 18:29 ` Kay Sievers
[not found] ` <CAK1hOcNget=-MjeejiYGo5Vkigq9ey1o7sD2peO+tDGdk3TU9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-01-20 18:47 ` Al Viro
2012-01-24 11:02 ` /etc/fstab.d yes or not (resolved) Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120120155701.GL8797@codelibre.net \
--to=rleigh@codelibre.net \
--cc=kay.sievers@vrfy.org \
--cc=kzak@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=util-linux@vger.kernel.org \
--cc=yamato@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).