| To: | David Chinner <dgc@xxxxxxx> |
|---|---|
| Subject: | Re: [RFC][PATCH] Secure Deletion and Trash-Bin Support for Ext4 |
| From: | Nathan Scott <nscott@xxxxxxxxxx> |
| Date: | Thu, 07 Dec 2006 09:16:31 +1100 |
| Cc: | Nikolai Joukov <kolya@xxxxxxxxxxxxx>, linux-fsdevel@xxxxxxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| In-reply-to: | <20061206091100.GA33919298@xxxxxxxxxxxxxxxxx> |
| Organization: | Aconex |
| References: | <Pine.GSO.4.53.0612041256180.15321@compserv1> <20061204235042.GS33919298@xxxxxxxxxxxxxxxxx> <Pine.GSO.4.53.0612051049200.27677@compserv1> <20061206091100.GA33919298@xxxxxxxxxxxxxxxxx> |
| Reply-to: | nscott@xxxxxxxxxx |
| Sender: | xfs-bounce@xxxxxxxxxxx |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: mkfs.xfs questions, David Chinner |
|---|---|
| Next by Date: | Re: New CentOS4/RHEL4-compatible xfs module rpms, Geir A. Myrestrand |
| Previous by Thread: | PARTIAL TAKE 956832 - xfs_iunpin() sets I_DIRTY_SYNC after clear_inode(), David Chinner |
| Next by Thread: | Re: New CentOS4/RHEL4-compatible xfs module rpms, Geir A. Myrestrand |
| Indexes: | [Date] [Thread] [Top] [All Lists] |