Re: [PATCH 1/6] xfs: create a blob array data structure

Christoph Hellwig
2024-01-05T05:53:33Z

On Sun, Dec 31, 2023 at 12:35:11PM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
>
> Create a simple 'blob array' data structure for storage of arbitrarily
> sized metadata objects that will be used to reconstruct metadata. For
> the intended usage (temporarily storing extended attribute names and
> values) we only have to support storing objects and retrieving them.
> Use the xfile abstraction to store the attribute information in memory
> that can be swapped out.

Can't this simply be supported by xfiles directly? Just add a
xfile_append that writes at i_size and retuns the offset and we're done?