From: Reinoud Zandijk <reinoud-S783fYmB3Ccdnm+yROfE0A@public.gmane.org>
To: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
Cc: users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
Subject: Re: directory entries
Date: Mon, 1 Sep 2008 13:07:30 +0200 [thread overview]
Message-ID: <20080901110730.GA21008@aardappel.13thmonkey.org> (raw)
In-Reply-To: <20080901.143956.08023399.ryusuke-sG5X7nlA6pw@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 2292 bytes --]
Dear folks, dear Ryusuke,
On Mon, Sep 01, 2008 at 02:39:56PM +0900, Ryusuke Konishi wrote:
> Or, we can just think the ``main'' stream was replaced by the
> continued snapshot every time it is mounted in rw-mode. In this case,
> the head is regarded to be moved to the new (latest) checkpoint. This
> is actually convenient for the recovery in which a user pushed
> ``recover button'' for the snapshot.
>
> Note that even the old head becomes a plain checkpoint, it's still
> mountable and continuable again by being changed to a snapshot.
sounds reasonable yes... but why would that give problems with the DAT
file? If you allways load the DAT, CP and SU descriptors from the latest
checkpoint as recorded in the superroot even when mounting a snapshot
read-write all is ok i think. The `old head' will be preserved initially as
will be all allocations. If you want to keep the old head you'll have to
make it a snapshot and thus protect all entries that have the old head
snapshot in their intervals.
Changing the `old head' snapshot to a checkpoint will just result in the
cleaned up AFAICS. Do you expect trouble with the current interval code in
the cleaner? I can't see why the DAT would need change.
> To that end, this file must be extended to handle multiple lifetimes
> per block, and this would complicate the DAT. Without the DAT file,
> things are not so difficult. This would be achieved in a future, but
> in the meantime, I'll use rsync to continue snapshots ;)
are you thinking about removing the DAT file?? I thought it was the
addition to v2.0 :)
> > We could also give snapshot/head a name; then
> > increasing checkpoints is no issue if you keep the head name
>
> Yeah, this would be possible by adding another meta data file
> (e.g. tag file) which maps the HEAD names to checkpoint numbers of
> snapshots. When keeping multiple writeable snapshots, this kind of
> extension would be demanded than now. However, I'd rather do this in
> userland with a regular file (i.e. a DB file) or with TAG files each
> of which simply records a checkpoint number.
The extra meta file sounds good but i dont like the `userland' DB solution;
it would make nilfs dependent on DB4 (or the like) and it could make it
non-selfcontaining.
With regards,
Reinoud
[-- Attachment #1.2: Type: application/pgp-signature, Size: 478 bytes --]
[-- Attachment #2: Type: text/plain, Size: 158 bytes --]
_______________________________________________
users mailing list
users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
https://www.nilfs.org/mailman/listinfo/users
next prev parent reply other threads:[~2008-09-01 11:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-23 20:38 directory entries Reinoud Zandijk
[not found] ` <20080823203853.GA19421-5cYspOl2ggRz6xQTk39kMVfVdRo2wo/d@public.gmane.org>
2008-08-25 3:21 ` Ryusuke Konishi
[not found] ` <20080825.122125.65657043.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-08-25 3:30 ` Ryusuke Konishi
[not found] ` <20080825.123047.128885778.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-08-25 15:52 ` Reinoud Zandijk
[not found] ` <20080825155243.GA12855-5cYspOl2ggRz6xQTk39kMVfVdRo2wo/d@public.gmane.org>
2008-08-26 10:29 ` Ryusuke Konishi
[not found] ` <20080826.192942.104752679.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-08-26 13:29 ` Reinoud Zandijk
[not found] ` <20080901.143956.08023399.ryusuke@osrg.net>
[not found] ` <20080901.143956.08023399.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-09-01 5:51 ` Shaya Potter
[not found] ` <48BB82F7.4070607-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2008-09-01 8:16 ` Ryusuke Konishi
[not found] ` <20080901.171643.74124381.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-09-01 14:27 ` Shaya Potter
[not found] ` <48BBFBEA.2000308-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2008-09-01 17:31 ` Ryusuke Konishi
2008-09-01 11:07 ` Reinoud Zandijk [this message]
[not found] ` <20080901110730.GA21008-5cYspOl2ggRz6xQTk39kMVfVdRo2wo/d@public.gmane.org>
2008-09-01 16:51 ` Ryusuke Konishi
[not found] ` <20080902.015156.126164477.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-09-02 15:02 ` Reinoud Zandijk
[not found] ` <20080902150226.GA28292-5cYspOl2ggRz6xQTk39kMVfVdRo2wo/d@public.gmane.org>
2008-09-03 12:39 ` Reinoud Zandijk
2008-09-03 16:32 ` Ryusuke Konishi
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=20080901110730.GA21008@aardappel.13thmonkey.org \
--to=reinoud-s783fymb3ccdnm+yrofe0a@public.gmane.org \
--cc=ryusuke-sG5X7nlA6pw@public.gmane.org \
--cc=users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.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