From owner-freebsd-questions@FreeBSD.ORG Mon May 28 11:36:16 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC70A16A54A for ; Mon, 28 May 2007 11:36:16 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from merke.itea.ntnu.no (merke.itea.ntnu.no [129.241.7.61]) by mx1.freebsd.org (Postfix) with ESMTP id 6829D13C4BE for ; Mon, 28 May 2007 11:36:15 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from localhost (localhost [127.0.0.1]) by merke.itea.ntnu.no (Postfix) with ESMTP id D583C13C72F for ; Mon, 28 May 2007 13:36:14 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by merke.itea.ntnu.no (Postfix) with SMTP for ; Mon, 28 May 2007 13:36:13 +0200 (CEST) Received: (qmail 24139 invoked by uid 88); 28 May 2007 13:36:13 +0200 Received: from maren.math.ntnu.no (HELO weld.ej2.thelosingend.net) (129.241.211.48) by maren.thelosingend.net (qpsmtpd/0.31.1) with ESMTP; Mon, 28 May 2007 13:35:53 +0200 Message-ID: <465ABE5C.3000706@lvor.halvorsen.cc> Date: Mon, 28 May 2007 13:34:52 +0200 From: Svein Halvor Halvorsen User-Agent: Thunderbird 2.0.0.0 (X11/20070523) MIME-Version: 1.0 To: Ian Smith , Maxim Khitrov , Svein Halvor Halvorsen , freebsd-questions@freebsd.org References: <20070527201623.AC50F16A4EA@hub.freebsd.org> <20070528111109.GA614@slackbox.xs4all.nl> In-Reply-To: <20070528111109.GA614@slackbox.xs4all.nl> X-Enigmail-Version: 0.95.0 OpenPGP: id=9198BB40; url=mailto:pgpkey@svein.halvorsen.cc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: Subject: Re: Restore UFS snapshot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2007 11:36:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Roland Smith wrote: > On Mon, May 28, 2007 at 05:15:19PM +1000, Ian Smith wrote: >> I share Roland's concern about the reliability of any new code designed >> to accomplish the 'full rollback' desired, but of course anything would >> have to undergo incredibly rigorous testing before it would be allowed >> anywhere near even -CURRENT I'm sure, same as softupdates/snapshots has. >> >> That said, I think it is worthwhile finding out whether this is even >> possible with the amount of data and metadata saved in snapshots to >> accomplish their existing utility (which I still find pretty awesome, >> and despite re-reading that section again several times, mysterious ..) > > It should be possible. All the data that is needed is there. But I do > think it will be definitely non-trivial. > > For one thing, you'll have to block all other changes from userland to > the target filesystem while restoring the snapshot. And you'll have to > update other snapshots as well. Seems like a big can of worms to me. I was thinking this should be done while the fs is umounted. As I suggested: 1. umount 2. snap_rollback and 3. mount. Svein Halvor -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: mailto:pgpkey@svein.halvorsen.cc to get my PGP-key iD8DBQFGWr5ahQg3vZGYu0ARAh/iAJ0RdOGSuzgALvRNin2Nd2Xtw3hrmgCguxN4 oKBvLazzHSsN62uas1szqRg= =kOxO -----END PGP SIGNATURE-----