From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryusuke Konishi Subject: Re: [PATCH RFC] nilfs2: continuous snapshotting file system Date: Mon, 01 Sep 2008 21:25:40 +0900 (JST) Message-ID: <20080901.212540.68831117.ryusuke@osrg.net> References: <20080829104459.GB27647@logfs.org> <20080830.013729.49169215.ryusuke@osrg.net> <20080829191621.GD27647@logfs.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: joern@logfs.org Return-path: Received: from sh.osrg.net ([192.16.179.4]:42030 "EHLO sh.osrg.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752671AbYIAM03 convert rfc822-to-8bit (ORCPT ); Mon, 1 Sep 2008 08:26:29 -0400 In-Reply-To: <20080829191621.GD27647@logfs.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, 29 Aug 2008 21:16:22 +0200, J=F6rn Engel wrote: > On Sat, 30 August 2008 01:37:29 +0900, Ryusuke Konishi wrote: > > On the other hand, there are some differences in premise because ni= lfs > > is aiming at racking up past user data and makes it a top priority = to > > keep data which is overwritten by recent updates. If users want to > > preserve much data in nilfs, it will increase the chance of disk fu= lls > > than regular file systems. >=20 > Hm, good point. With continuous snapshots the rules of the game chan= ge > considerably. So maybe it is ok to depend on the userspace daemon he= re, > because the space is unreclaimable anyway. >=20 > What is the policy on deleting continuous snapshots? Or can it even = be > configured by the administrator (which would be cool)? =46irst, nilfs never deletes the checkpoints marked as snapshot nor the recent checkpoints whose elapsed time from its creation is smaller than ``protection period''. These are ground rules. Based on the rules, the userland GC daemon can delete arbitrary checkpoints among removable checkpoints. But the current GC just deletes the removable checkpoints in chronological order. More sophisticated policies, for example, the one detects landmark checkpoints and tries to keep them (a known policy in versioning filesystems), may be conceivable. But I feel the current policy is simple and satisfactory, so I'd like to leave others to someone who wants to implement them (e.g. one of my colleagues). Regards, Ryusuke Konishi -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html