Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751333Ab3JTN0i (ORCPT ); Sun, 20 Oct 2013 09:26:38 -0400 Received: from mail-ea0-f177.google.com ([209.85.215.177]:41822 "EHLO mail-ea0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751095Ab3JTN0h (ORCPT ); Sun, 20 Oct 2013 09:26:37 -0400 Message-ID: <5263DA0A.7030004@linux.com> Date: Sun, 20 Oct 2013 15:26:34 +0200 From: Levente Kurusa Reply-To: levex@linux.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: jiaweiwei CC: "Theodore Ts'o" , Vyacheslav Dubeyko , "linux-kernel@vger.kernel.org" , Harry Wei Subject: Re: [RFC] Rollback FS References: <20131020123521.GA15627@thunk.org> <5263D576.70202@linux.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1319 Lines: 30 2013-10-20 15:19 keltez?ssel, jiaweiwei ?rta: > On Sun, Oct 20, 2013 at 9:07 PM, Levente Kurusa wrote: > [...] >>> A good catch. Following ideas would be suitable. >>> >>> 1, Keep the blocks or inodes by a parameter we give. >>> 2, Keep the blocks or inodes for several seconds. >> Keep them where? On the HDD? We just deleted/moved that. > > Delete/move a file with a parameter, which would keep the blocks or inodes > in-place. Or we would keep the blocks or inodes for several seconds. The problem with keeping the inodes/blocks for several seconds is that you would need to find a magic number that is not small enough, because if it is, then what if the user doesn't notice the problem during a long operation? If the magic number is big, then we waste a lot of space. The problem with the parameter thing is that again, all the different filesystems need to support that feature. We can't just tell Ext3 or JFFS2 on the VFS level, that 'Hey, keep those inodes in place incase someone just made himself some headache.' -- Regards, Levente Kurusa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/