public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Heading <anthony@magix.com.sg>
To: linux-kernel@vger.kernel.org
Subject: Should mount --bind not follow symlinks?
Date: Mon, 12 Mar 2001 19:44:13 +0900	[thread overview]
Message-ID: <3AACA87D.70C740A8@magix.com.sg> (raw)

Hi,
    My automounted dirs have up till now been symlinks, where
e.g. /opt/perl defaults to automounting /export/opt/perl/LATEST
which is a symlink.

   This all worked OK until the 2.4(.2) automounter helpfully tries
to mount --bind /export/opt/perl/LATEST /opt/perl

   And this errors with "mount: wrong fs type, ..." because it
seems the first arg to mount --bind mustn't be a symlink,
resulting in a "No such file" or similar error being returned
to the requester.

   What is especially confusing is that if this whole thing
was kicked off with say  ls /opt/perl/bin,  the first attempt
returns "No such file or directory", but automount
then installs a symlink into /opt,  so a second ls attempt
works fine.

   Is this known about / to be expected?  I can't see why
one of automount or mount or the underlying system call
shouldn't chase symlinks, but I know I might be missing
some reason why I shouldn't be attempting this.

Anthony

             reply	other threads:[~2001-03-12 10:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-12 10:44 Anthony Heading [this message]
2001-03-12 13:40 ` Should mount --bind not follow symlinks? Alexander Viro
2001-03-12 15:37   ` Anthony
2001-03-14 13:31     ` Jamie Lokier
2001-03-26 14:04       ` Anthony
2001-04-16 15:37   ` Kai Henningsen

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=3AACA87D.70C740A8@magix.com.sg \
    --to=anthony@magix.com.sg \
    --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