Received: with ECARTIS (v1.0.0; list xfs); Wed, 06 Dec 2006 19:56:57 -0800 (PST) Received: from mail.aconex.com (mail.app.aconex.com [203.89.192.138]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id kB73umaG012980 for ; Wed, 6 Dec 2006 19:56:50 -0800 X-ASG-Debug-ID: 1165458838-15a700010000-NocioJ X-Barracuda-URL: http://cuda.aconex.com:8000/cgi-bin/mark.cgi X-Barracuda-Connect: unknown[192.168.3.1] X-Barracuda-Start-Time: 1165458838 Received: from postoffice.aconex.com (unknown [192.168.3.1]) by mail.aconex.com (Spam Firewall) with ESMTP id 1D80928D; Thu, 7 Dec 2006 13:33:58 +1100 (EST) Received: from edge (unknown [192.168.200.2]) by postoffice.aconex.com (Postfix) with ESMTP id A7E17AAC18E; Thu, 7 Dec 2006 13:29:23 +1100 (EST) X-ASG-Orig-Subj: Re: [RFC][PATCH] Secure Deletion and Trash-Bin Support for Ext4 Subject: Re: [RFC][PATCH] Secure Deletion and Trash-Bin Support for Ext4 From: Nathan Scott Reply-To: nscott@aconex.com To: David Chinner Cc: Nikolai Joukov , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, xfs@oss.sgi.com In-Reply-To: <20061206091100.GA33919298@melbourne.sgi.com> References: <20061204235042.GS33919298@melbourne.sgi.com> <20061206091100.GA33919298@melbourne.sgi.com> Content-Type: text/plain Organization: Aconex Date: Thu, 07 Dec 2006 09:16:31 +1100 Message-Id: <1165443391.1281.135.camel@edge> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at aconex.com X-archive-position: 9903 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: nscott@aconex.com Precedence: bulk X-list: xfs Content-Length: 1033 Lines: 30 On Wed, 2006-12-06 at 20:11 +1100, David Chinner wrote: > ... > If all we need to add to XFS is support for those flags, then XFS > support would be trivial to add. > > Oh, damn. I take that back. We're almost out of flag space in the on > disk inode - these two flags would use the last 2 flag bits so this > may require an on disk inode format change in XFS. This will be > a little more complex than I first thought, ... It should be OK - you can do it without an inode version revision if you take a second 16 bits for "di_flags2" from here... xfs_dinode_core { ... __uint8_t di_pad[8]; /* unused, zeroed space */ Its guaranteed zeroed initially (i.e. all flags unset) and the XFS get/set flags APIs are 32 bits, so you should be OK there. Also, it may also be possible to reclaim di_onlink at some point (maybe now, since 16 bits would be good here) if mkfs.xfs is changed to always create v2 inodes (dynamic conversion ATM IIRC)... not 100% sure though, needs more code analysis. cheers. -- Nathan