linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: Ken D'Ambrosio <ken@jots.org>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Yet Another Newb Question...
Date: Wed, 7 Dec 2011 21:29:00 +0000	[thread overview]
Message-ID: <20111207212900.GA4614@carfax.org.uk> (raw)
In-Reply-To: <bf38f96107f723d7471ad1d46a0403d7@www.jots.org>

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

On Wed, Dec 07, 2011 at 04:14:46PM -0500, Ken D'Ambrosio wrote:
> (Asking this question on this list kinda makes me wonder if there shouldn't be
> a btrfs-users list where folks could ask questions just like this without
> pestering developers...)
> 
> Anyway -- I had a root partition with a /snapshots directory, in which I placed
> a bunch of snapshots.  At one point, I goofed stuff up, and decided to revert
> my root (using "btrfs sub set-default") to one of the snapshots.  Rebooted, and
> it worked great -- just like I'd hoped.
> 
> But where'd the snapshots in /snapshots go?

   Where they always were -- it's just that you've mounted a different
bit of the filesystem, so you can't see them. :)

> I mean, I still see them if I do a "btrfs sub list", but how do I *get* to them
> for, say, deleting?  (I can still mount them via "-o subvolid", but that's not
> quite the same thing.)

   If you've got subvolumes outside your mounted filesystem, then you
can either reach them by mounting via subvolid, or by mounting the
top-level subvolume with subvolid=0 (on, say, /media/btrfs-top) and
then navigating through that to the subvolume you want.

   See (my) recommended filesystem structure on the wiki[1].

   Hugo.

http://btrfs.ipv5.de/index.php?title=SysadminGuide#Managing_snapshots

-- 
=== 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
  --- There are three things you should never see being made: laws, ---  
                        standards,  and sausages.                        

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

      reply	other threads:[~2011-12-07 21:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-07 21:14 Yet Another Newb Question Ken D'Ambrosio
2011-12-07 21:29 ` 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=20111207212900.GA4614@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=ken@jots.org \
    --cc=linux-btrfs@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).