linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Mason <clm@fb.com>
To: Marc MERLIN <marc@merlins.org>, <linux-btrfs@vger.kernel.org>
Subject: Re: Using mount -o bind vs mount -o subvol=vol
Date: Mon, 5 May 2014 09:54:25 -0400	[thread overview]
Message-ID: <53679811.1020001@fb.com> (raw)
In-Reply-To: <20140504004732.GE9061@merlins.org>

On 05/03/2014 08:47 PM, Marc MERLIN wrote:
> Is there any functional difference between
>
> mount -o subvol=usr /dev/sda1 /usr
> and
> mount /dev/sda1 /mnt/btrfs_pool
> mount -o bind /mnt/btrfs_pool/usr /usr

The internal implementation of mount -o subvol is a bind mount.  The 
only real difference is having /mnt/btrfs_pool hanging around.

-chris


      parent reply	other threads:[~2014-05-05 13:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-04  0:47 Using mount -o bind vs mount -o subvol=vol Marc MERLIN
2014-05-04  7:07 ` Brendan Hide
2014-05-05  0:56   ` Marc MERLIN
2014-05-05  4:13     ` Brendan Hide
2014-05-05  4:36       ` Roman Mamedov
2014-05-05  6:55         ` Brendan Hide
2014-05-06 17:34           ` Duncan
2014-05-05  5:22       ` Marc MERLIN
2014-05-05  2:12 ` Duncan
2014-05-07 10:55   ` Marc MERLIN
2014-05-07 12:31     ` Duncan
2014-05-05 13:54 ` Chris Mason [this message]

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=53679811.1020001@fb.com \
    --to=clm@fb.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=marc@merlins.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).