Re: JFFS2/xattr problems.

David Woodhouse
2006-06-12T09:53:15Z

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