JFFS2/xattr problems.

David Woodhouse dwmw2 at infradead.org
Mon Jun 12 05:53:15 EDT 2006


On Mon, 2006-06-12 at 18:43 +0900, KaiGai Kohei wrote:
> In my opinion, a xattr across multiple nodes isn't neccesary.
> What do you think?

I'd be happier if it worked -- some of us have plans to abuse XATTR
support by building a simple database on it... :)

But as long as the failure mode is _graceful_, I suppose we can live
without it for now, if ext3 is also limited to 4KiB.

I'm looking through your handling of deletion now... I'm not sure that
we _need_ the physical deletion node for xdata, do we? Those can go away
just because there are no xrefs which link to them, just like our inodes
do?

Also, the physical deletion node for xrefs is only needed when the xattr
is deleted _without_ the inode being deleted. When the inode goes away,
again the xref becomes obsolete all by itself, right?

Finally, we need to be careful about garbage collection of deletion
nodes. Remember that the deletion node might be garbage-collected
_before_ the older node which it is deleting. So you must decide whether
to write the deletion node out again, when you are garbage collecting
it.

See the horrid mess we make of 'deletion dirents'.

-- 
dwmw2





More information about the linux-mtd mailing list