* bug v2.29-rc2, /etc/mtab file
@ 2016-10-20 13:59 Ruediger Meier
2016-10-20 16:00 ` Karel Zak
2016-10-20 16:28 ` Karel Zak
0 siblings, 2 replies; 5+ messages in thread
From: Ruediger Meier @ 2016-10-20 13:59 UTC (permalink / raw)
To: util-linux
Hi,
On RHEL/CentOs-6 with /etc/mtab file some of our mount tests write something to
/etc/mtab. AFAIR it should be ignored nowadays by default, right?
After our test-suite was running I see these lines left in /etc/mtab:
tmpd /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/fstab-broken-mnt tmpfs rw 0 0
tmpd /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/fstab-broken-mnt tmpfs rw 0 0
none /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/fstab-none-mnt tmpfs rw,nosuid,nodev,relatime 0 0
cu,
Rudi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bug v2.29-rc2, /etc/mtab file
2016-10-20 13:59 bug v2.29-rc2, /etc/mtab file Ruediger Meier
@ 2016-10-20 16:00 ` Karel Zak
2016-10-20 16:24 ` Ruediger Meier
2016-10-20 16:28 ` Karel Zak
1 sibling, 1 reply; 5+ messages in thread
From: Karel Zak @ 2016-10-20 16:00 UTC (permalink / raw)
To: Ruediger Meier; +Cc: util-linux
On Thu, Oct 20, 2016 at 03:59:15PM +0200, Ruediger Meier wrote:
> Hi,
>
> On RHEL/CentOs-6 with /etc/mtab file some of our mount tests write something to
> /etc/mtab. AFAIR it should be ignored nowadays by default, right?
>
> After our test-suite was running I see these lines left in /etc/mtab:
>
> tmpd /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/fstab-broken-mnt tmpfs rw 0 0
> tmpd /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/fstab-broken-mnt tmpfs rw 0 0
> none /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/fstab-none-mnt tmpfs rw,nosuid,nodev,relatime 0 0
Because our mount (from the test) calls /sbin/mount.tmpfs where
is executed standard mount(8) from system.
I'll improve the test to call umount --fake to clean up mtab.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: bug v2.29-rc2, /etc/mtab file
2016-10-20 16:00 ` Karel Zak
@ 2016-10-20 16:24 ` Ruediger Meier
2016-10-20 16:32 ` Karel Zak
0 siblings, 1 reply; 5+ messages in thread
From: Ruediger Meier @ 2016-10-20 16:24 UTC (permalink / raw)
To: Karel Zak; +Cc: util-linux
On Thursday 20 October 2016, Karel Zak wrote:
> On Thu, Oct 20, 2016 at 03:59:15PM +0200, Ruediger Meier wrote:
> > Hi,
> >
> > On RHEL/CentOs-6 with /etc/mtab file some of our mount tests write
> > something to /etc/mtab. AFAIR it should be ignored nowadays by
> > default, right?
> >
> > After our test-suite was running I see these lines left in
> > /etc/mtab:
> >
> > tmpd
> > /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/
> >fstab-broken-mnt tmpfs rw 0 0 tmpd
> > /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/
> >fstab-broken-mnt tmpfs rw 0 0 none
> > /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/
> >fstab-none-mnt tmpfs rw,nosuid,nodev,relatime 0 0
>
> Because our mount (from the test) calls /sbin/mount.tmpfs where
> is executed standard mount(8) from system.
Ah interesting. That's why it works on my local system (also mtab file)
where I don't have /sbin/mount.tmpfs.
> I'll improve the test to call umount --fake to clean up mtab.
Still a bit annoying that these "third party mount binaries" may modify
mtab but our umount does not.
cu,
Rudi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bug v2.29-rc2, /etc/mtab file
2016-10-20 16:24 ` Ruediger Meier
@ 2016-10-20 16:32 ` Karel Zak
0 siblings, 0 replies; 5+ messages in thread
From: Karel Zak @ 2016-10-20 16:32 UTC (permalink / raw)
To: Ruediger Meier; +Cc: util-linux
On Thu, Oct 20, 2016 at 06:24:43PM +0200, Ruediger Meier wrote:
> On Thursday 20 October 2016, Karel Zak wrote:
> > On Thu, Oct 20, 2016 at 03:59:15PM +0200, Ruediger Meier wrote:
> > > Hi,
> > >
> > > On RHEL/CentOs-6 with /etc/mtab file some of our mount tests write
> > > something to /etc/mtab. AFAIR it should be ignored nowadays by
> > > default, right?
> > >
> > > After our test-suite was running I see these lines left in
> > > /etc/mtab:
> > >
> > > tmpd
> > > /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/
> > >fstab-broken-mnt tmpfs rw 0 0 tmpd
> > > /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/
> > >fstab-broken-mnt tmpfs rw 0 0 none
> > > /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/
> > >fstab-none-mnt tmpfs rw,nosuid,nodev,relatime 0 0
> >
> > Because our mount (from the test) calls /sbin/mount.tmpfs where
> > is executed standard mount(8) from system.
>
> Ah interesting. That's why it works on my local system (also mtab file)
> where I don't have /sbin/mount.tmpfs.
>
> > I'll improve the test to call umount --fake to clean up mtab.
>
> Still a bit annoying that these "third party mount binaries" may modify
> mtab but our umount does not.
Well, this problem cannot exist on system where mtab is symlink. All
"third party mount binaries" should be able to detect the symlink. The
symlink is supported by mount(8) for 10+ years.
And on system where is regular mtab you don't want to use util-linux
compiled without mtab support.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bug v2.29-rc2, /etc/mtab file
2016-10-20 13:59 bug v2.29-rc2, /etc/mtab file Ruediger Meier
2016-10-20 16:00 ` Karel Zak
@ 2016-10-20 16:28 ` Karel Zak
1 sibling, 0 replies; 5+ messages in thread
From: Karel Zak @ 2016-10-20 16:28 UTC (permalink / raw)
To: Ruediger Meier; +Cc: util-linux
On Thu, Oct 20, 2016 at 03:59:15PM +0200, Ruediger Meier wrote:
> After our test-suite was running I see these lines left in /etc/mtab:
>
> tmpd /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/fstab-broken-mnt tmpfs rw 0 0
> tmpd /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/fstab-broken-mnt tmpfs rw 0 0
> none /home/abuild/rpmbuild/BUILD/util-linux-2.29-rc2/tests/output/mount/fstab-none-mnt tmpfs rw,nosuid,nodev,relatime 0 0
Should be fixed now.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-10-20 16:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-20 13:59 bug v2.29-rc2, /etc/mtab file Ruediger Meier
2016-10-20 16:00 ` Karel Zak
2016-10-20 16:24 ` Ruediger Meier
2016-10-20 16:32 ` Karel Zak
2016-10-20 16:28 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox