* Using /etc/fstab.d
@ 2011-11-27 22:19 Roger Leigh
2011-11-28 9:14 ` Karel Zak
0 siblings, 1 reply; 4+ messages in thread
From: Roger Leigh @ 2011-11-27 22:19 UTC (permalink / raw)
To: util-linux
Hi folks,
I noticed that support had recently been added for /etc/fstab.d.
In Debian, we're configuring with --enable-libmount-mount, but
I'm not seeing it being used; strace shows no opendir/stat calls
for it. Is anything else necessary to enable it, or is it not
yet actually used by mount?
I've just created a file /etc/fstab.d/test.fstab, and then
tried "mount /foo", where /foo would be the entry in test.fstab,
but don't see anything happening.
Thanks,
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Using /etc/fstab.d
2011-11-27 22:19 Using /etc/fstab.d Roger Leigh
@ 2011-11-28 9:14 ` Karel Zak
2011-11-28 22:52 ` Roger Leigh
0 siblings, 1 reply; 4+ messages in thread
From: Karel Zak @ 2011-11-28 9:14 UTC (permalink / raw)
To: Roger Leigh; +Cc: util-linux
On Sun, Nov 27, 2011 at 10:19:56PM +0000, Roger Leigh wrote:
> I noticed that support had recently been added for /etc/fstab.d.
> In Debian, we're configuring with --enable-libmount-mount, but
> I'm not seeing it being used; strace shows no opendir/stat calls
> for it. Is anything else necessary to enable it, or is it not
> yet actually used by mount?
Do you really have the latest git tree (gil pull to refresh)?
> I've just created a file /etc/fstab.d/test.fstab, and then
> tried "mount /foo", where /foo would be the entry in test.fstab,
> but don't see anything happening.
[git clone / git clean -xdf; cd util-linux]
$ ./autogen.sh
$ ./configure --enable-libmount-mount
$ make -C mount/ mount
# cat /etc/fstab.d/tests.fstab
/home/fs-images/ext2.img /mnt/loop auto defaults,noauto
# ./mount/mount /mnt/loop
# findmnt /mnt/loop
TARGET SOURCE FSTYPE OPTIONS
/mnt/loop /dev/loop0 ext2 rw,relatime,errors=continue
# findmnt --fstab /mnt/loop
TARGET SOURCE FSTYPE OPTIONS
/mnt/loop /home/fs-images/ext2.img auto defaults,noauto
.. so works for me ;-)
Try
LIBMOUNT_DEBUG=0xffff ./mount/mount ...
to debug the problem.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Using /etc/fstab.d
2011-11-28 9:14 ` Karel Zak
@ 2011-11-28 22:52 ` Roger Leigh
2011-11-29 11:19 ` Karel Zak
0 siblings, 1 reply; 4+ messages in thread
From: Roger Leigh @ 2011-11-28 22:52 UTC (permalink / raw)
To: util-linux
On Mon, Nov 28, 2011 at 10:14:35AM +0100, Karel Zak wrote:
> On Sun, Nov 27, 2011 at 10:19:56PM +0000, Roger Leigh wrote:
> > I noticed that support had recently been added for /etc/fstab.d.
> > In Debian, we're configuring with --enable-libmount-mount, but
> > I'm not seeing it being used; strace shows no opendir/stat calls
> > for it. Is anything else necessary to enable it, or is it not
> > yet actually used by mount?
>
> Do you really have the latest git tree (gil pull to refresh)?
I was testing the 2.20.1 release, which I saw had fstab.d
support implemented (at least partially) in libmount. It does
indeed now work with current git. Just saw that it was only
enabled last week in mount, looking at the history. Will it
be long until this is in a release?
Thanks,
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Using /etc/fstab.d
2011-11-28 22:52 ` Roger Leigh
@ 2011-11-29 11:19 ` Karel Zak
0 siblings, 0 replies; 4+ messages in thread
From: Karel Zak @ 2011-11-29 11:19 UTC (permalink / raw)
To: Roger Leigh; +Cc: util-linux
On Mon, Nov 28, 2011 at 10:52:23PM +0000, Roger Leigh wrote:
> On Mon, Nov 28, 2011 at 10:14:35AM +0100, Karel Zak wrote:
> > On Sun, Nov 27, 2011 at 10:19:56PM +0000, Roger Leigh wrote:
> > > I noticed that support had recently been added for /etc/fstab.d.
> > > In Debian, we're configuring with --enable-libmount-mount, but
> > > I'm not seeing it being used; strace shows no opendir/stat calls
> > > for it. Is anything else necessary to enable it, or is it not
> > > yet actually used by mount?
> >
> > Do you really have the latest git tree (gil pull to refresh)?
>
> I was testing the 2.20.1 release, which I saw had fstab.d
ah.. :-)
> support implemented (at least partially) in libmount. It does
> indeed now work with current git. Just saw that it was only
> enabled last week in mount, looking at the history. Will it
> be long until this is in a release?
The feature going to be supported in the next release 2.21 (beta next
month), I don't expect any changes in this area.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-29 11:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-27 22:19 Using /etc/fstab.d Roger Leigh
2011-11-28 9:14 ` Karel Zak
2011-11-28 22:52 ` Roger Leigh
2011-11-29 11:19 ` Karel Zak
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).