Re: [PATCH RFC] nilfs2: continuous snapshotting file system

From: JÃrn Engel
Date: Tue Aug 26 2008 - 06:16:49 EST


On Thu, 21 August 2008 01:13:45 +0900, Ryusuke Konishi wrote:
> >On Wed, 20 Aug 2008 11:45:05 +0900 Ryusuke Konishi <konishi.ryusuke@xxxxxxxxxxxxx> wrote:
>
> 4. To make disk blocks relocatable, NILFS2 maintains a table file (called DAT)
> which maps virtual disk blocks addresses to usual block addresses.
> The lifetime information is recorded in the DAT per virtual block address.

Interesting approach. Does that mean that every block lookup involves
two disk accesses, one for the DAT and one for the actual block?

> The current NILFS2 GC simply reclaims from the oldest segment, so the disk
> partition acts like a ring buffer. (this behaviour can be changed by
> replacing userland daemon).

Is this userland daemon really necessary? I do all that stuff in
kernelspace and the amount of code I have is likely less than would be
necessary for the userspace interface alone. Apart from creating a
plethora of research papers, I never saw much use for pluggable
cleaners.

Did you encounter any nasty deadlocks and how did you solve them?
Finding deadlocks in the vfs-interaction became a hobby of mine when
testing logfs and at least one other lfs seems to have had similar
problems - they exported the inode_lock in their patch. ;)

JÃrn

--
Consensus is no proof!
-- John Naisbitt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/