From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: linux-fsdevel@vger.kernel.org
Subject: Behavior of 'mount --bind' and umount
Date: Fri, 27 Dec 2013 18:18:49 +0100 [thread overview]
Message-ID: <52BDB679.7070102@6wind.com> (raw)
Hi all,
I've a question about this command.
Let's take a simple test:
$ touch foo
$ echo foo > foo
$ touch bar
$ mount --bind foo bar
$ cat bar
foo
$ umount foo
On some files system/distribution/kernel, the last command returns an error
(on debian for example):
$ umount foo
umount: foo: not mounted
or unmount bar (on ubuntu for example):
$ umount foo
$ cat bar
$
I did not find the reason of this difference, any help is welcome.
Thank you,
Nicolas
reply other threads:[~2013-12-27 17:18 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=52BDB679.7070102@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=linux-fsdevel@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;
as well as URLs for NNTP newsgroup(s).