From: Chris Mason <chris.mason@oracle.com>
To: John Dong <jdong@ubuntu.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Way to quickly "revert back" to a snapshot?
Date: Mon, 26 Oct 2009 18:38:42 +0900 [thread overview]
Message-ID: <20091026093842.GF5564@think> (raw)
In-Reply-To: <4AD9FCDC.6060107@ubuntu.com>
On Sat, Oct 17, 2009 at 01:20:28PM -0400, John Dong wrote:
> Suppose I want to do test something insane (like a massive OS
> update) to my system, and create a snapshot before doing so.
> Afterwards, if I decide my system is hosed and I'd like to revert
> back to the snapshot and forget any of this actually happened,
> what's the quickest way of doing it. It seems like by btrfs's design
> there should be a way to just "set the head" of the filesystem back
> to the snapshot, like git-reset, right?
This is near the top of the list of features I want to add for 2.6.33.
Basically all we need is a way to swap the default subvolume (which is
just a directory entry) pointer with another subvolume.
We also want a way to find an snapshot all the subvolumes and snapshots
underneath a given root. That way the user won't have to do it
manually (snapshotting isn't recursive by default).
If anyone is interested in a coding project, both are fairly easy, just
let me know.
-chris
next prev parent reply other threads:[~2009-10-26 9:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-17 17:20 Way to quickly "revert back" to a snapshot? John Dong
2009-10-26 9:38 ` Chris Mason [this message]
2009-10-30 6:52 ` TARUISI Hiroaki
2009-10-30 15:35 ` Chris Mason
2009-11-02 1:16 ` TARUISI Hiroaki
2009-11-04 21:57 ` David Nicol
2009-11-04 22:33 ` Andrey Kuzmin
2009-11-05 5:31 ` TARUISI Hiroaki
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=20091026093842.GF5564@think \
--to=chris.mason@oracle.com \
--cc=jdong@ubuntu.com \
--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