]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: create a blob array data structure
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:25 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:12 +0000 (17:01 -0700)
commit7bc368927f02e2d3e4c86a2116eb2bcf53e8ee1c
tree0dbd1711d12341afa9a96d3cc36cabd40b6039e4
parentb2677fa4f4009abf8de4c15960a2e97dd5370d41
xfs: create a blob array data structure

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.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/Makefile
libxfs/xfblob.c [new file with mode: 0644]
libxfs/xfblob.h [new file with mode: 0644]
libxfs/xfile.c
libxfs/xfile.h