linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: "Björn Kalkbrenner" <terminar@cyberphoria.org>,
	linux-btrfs@vger.kernel.org
Subject: Re: Problems with set-default, home subvolume and snapshot
Date: Mon, 5 Sep 2011 14:57:40 +0100	[thread overview]
Message-ID: <20110905135740.GO9907@carfax.org.uk> (raw)
In-Reply-To: <20110905135129.GI11678@ds.suse.cz>

[-- Attachment #1: Type: text/plain, Size: 1512 bytes --]

On Mon, Sep 05, 2011 at 03:51:29PM +0200, David Sterba wrote:
> Hi,
> 
> On Mon, Sep 05, 2011 at 12:13:25PM +0200, Björn Kalkbrenner wrote:
> > Then i tried to
> > "mount -o subvolumeid=256 /dev/mapper/root /home" (id of home subvol)
> > and the content of my home is back...
> 
> this is a known limitation and a fix is pending in Josef's development
> tree
> 
> http://git.kernel.org/?p=linux/kernel/git/josef/btrfs-work.git;a=commit;h=4fbb149dfc7454d0f233fa8e5b9167f3645c8fcc
> 
> 
> "Btrfs: fix how we mount subvol=<whatever>
> 
>  We've only been able to mount with subvol=<whatever> where whatever was
>  a subvol within whatever root we had as the default.  This allows us to
>  mount -o subvol=path/to/subvol/you/want relative from the normal
>  fs_tree root.  Thanks,"
> 
> currently, the /home subvolume is searched inside the volume set by
> 'set-default'. When you change it to an alternative root snapshot, the
> '/home' subvolume lookup fails as you've seen.
> 
> The patch changes it so that the subvolumes are always looked up to the
> original default root subvolume (I don't know of a better name, internal
> id 5 or alse selectable by subvolid=0).

   I've always tried to refer to it as the "top level" or "subvolid=0".

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
         --- Always be sincere,  whether you mean it or not. ---         

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

      reply	other threads:[~2011-09-05 13:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-05 10:13 Problems with set-default, home subvolume and snapshot Björn Kalkbrenner
2011-09-05 10:30 ` Hugo Mills
2011-09-05 12:20   ` Björn Kalkbrenner
2011-09-05 12:45     ` Hugo Mills
2011-09-05 14:31       ` Björn Kalkbrenner
2011-09-07  6:47       ` Björn Kalkbrenner
2011-09-05 13:07   ` Ilya Dryomov
2011-09-05 14:43     ` Björn Kalkbrenner
2011-09-06 12:16       ` Calvin Walton
2011-09-05 13:51 ` David Sterba
2011-09-05 13:57   ` Hugo Mills [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=20110905135740.GO9907@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=terminar@cyberphoria.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).