forked from containers/composefs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: Add support for inlining small data files
For small files, it makes no sense to use a redirect to the basedir. The size of the redirect xattr value itself is typically 65 bytes, and on top of that comes the xattr name overhead. Things are even worse if we also want to store the fs-verity digest. The overhead for a very small file is significant. So, we add the ability to store the file content to save in a lcfs_node. And when serializing the erofs layer, if it is set we skip the redirect xattrs, and just directly store the data in the erofs file (instead of making it a sparse file). Signed-off-by: Alexander Larsson <[email protected]>
- Loading branch information
1 parent
03ac5fc
commit 7412067
Showing
4 changed files
with
116 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters