mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Hlawatschek <hlawatschek@atix.de>
To: linux-kernel@vger.kernel.org
Subject: mount --bind and /proc/mounts
Date: Tue, 2 Jan 2007 14:55:32 +0100	[thread overview]
Message-ID: <200701021455.32683.hlawatschek@atix.de> (raw)

Hi,

I'm using a shared root environment and therefore linked /etc/mtab 
to /proc/mounts. In addition I'm using --bind mount to make administration 
easier.

Now I found the following behaviour:
# mount -a 
is mounting all filesystems with bind options in the fstab 
everytime the command "mount -a " is executed. 

That works fine using an /etc/mtab file, but fails for --bind mounts 
using /etc/mtab linked to /proc/mounts.

I think this is because /etc/mtab has information about the source directory 
and /proc/mounts shows the device, hosting the filesystem.

e.g.
# mount --bind /tmp/bmount/ /mnt/bmount/
# cat /etc/mtab
(...) /tmp/bmount /mnt/bmount none rw,bind 0 0
# cat /proc/mounts
(...) /dev/root /mnt/bmount ext3 rw,data=ordered 0 0

Is there a solution for this ?
 
Thanks,

Mark





                 reply	other threads:[~2007-01-02 14:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200701021455.32683.hlawatschek@atix.de \
    --to=hlawatschek@atix.de \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®