From: Karel Zak <kzak@redhat.com>
To: Matt Burgess <matthew@linuxfromscratch.org>
Cc: util-linux <util-linux@vger.kernel.org>
Subject: Re: mount -f regression in v2.21's new-mount
Date: Wed, 7 Mar 2012 08:49:33 +0100 [thread overview]
Message-ID: <20120307074933.GE8389@x2.net.home> (raw)
In-Reply-To: <1331073821.1882.16.camel@kyoto.localdomain>
On Tue, Mar 06, 2012 at 10:43:41PM +0000, Matt Burgess wrote:
> Hi,
>
> First off, apologies in advance for the probably useless bug report that
> follows! I'm only reporting it here because it *appears* to be a
> regression but I can't reproduce it under a minimised test-case.
>
> Linux From Scratch's bootscripts mount a tmpfs at /run using the rather
> trivial 'mount -n /run'. The corresponding fstab entry is:
>
> # file system mount-point type options dump fsck order
> tmpfs /run tmpfs defaults 0 0
>
> A little later on in the boot sequence, it then does a 'mount -f /run'
> in order to do update /etc/mtab.
>
> Now, when I build 2.21 with a plain './configure' run, everything works
> as expected. However, when I build 2.21 with './configure
> --enable-new-mount', the 2nd call to 'mount' appears to actually perform
> the mount, as opposed to simply updating /etc/mtab, thereby meaning that
> files/directories we expect to be there are no longer visible.
>
> As mentioned above, I tried to reproduce this with a minimal test-case
> executed after boot, but the following *always* works correctly with
> both old and new (libmount-based) mount:
>
> mkdir /tmp/run
> mount -n /tmp/run
> touch /tmp/run/test
> ls -l /tmp/run/test
> mount -f /tmp/run
> ls -l /tmp/run/test
>
> If the test case was successful at reproducing the fault, I'd expect the
> 1st 'ls' command to show 1 file, and the 2nd to show 0 files.
>
> Any ideas on either where this bug may be, or how I may go about trying
> to reproduce/debug it further would be gratefully received.
Try to modify your init scripts:
LIBMOUNT_DEBUG=0xffff mount -f /run 2> /root/mount-run.debug
we will see more details in the log.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2012-03-07 7:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 22:43 mount -f regression in v2.21's new-mount Matt Burgess
2012-03-07 7:49 ` Karel Zak [this message]
2012-03-07 22:10 ` Matt Burgess
2012-03-08 9:23 ` Karel Zak
2012-03-08 20:25 ` Matt Burgess
2012-03-09 10:53 ` Karel Zak
2012-03-09 11:30 ` Matthew Burgess
2012-03-09 12:29 ` Karel Zak
2012-03-11 19:06 ` Matt Burgess
2012-03-12 14:09 ` Voelker, Bernhard
2012-03-12 14:32 ` Karel Zak
2012-03-12 17:17 ` Pádraig Brady
2012-03-09 14:22 ` Petr Uzel
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=20120307074933.GE8389@x2.net.home \
--to=kzak@redhat.com \
--cc=matthew@linuxfromscratch.org \
--cc=util-linux@vger.kernel.org \
/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