Compressed EROFS from mkcomposefs
?
#378
-
#332 (comment) mentions: "The erofs produced by However, I can't find anything on how to get a compressed EROFS image from |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
EROFS doesn't compress metadata, only data. The composefs EROFS is just metadata. There's nothing stopping one from compressing it out of band and decompressing it before use, although that would currently mean the fsverity tree would need to be recomputed for example. BTRFS does support both compression and fsverity, but I don't know if they're compatible...I suspect not. What's your use case for compressing? |
Beta Was this translation helpful? Give feedback.
-
I was mainly curious where the "10MB" came from. From what you're saying though, I guess they meant they literally created something like I never realised EROFS compression doesn't apply to metadata, but skimming the kernel docs again, it turns out this is actually a design choice: https://erofs.docs.kernel.org/en/latest/features.html#id17 |
Beta Was this translation helpful? Give feedback.
-
I literally took the finished image file and piped it through The final file was not something that we could mount directly, but at the time, we were discussing copying it to a memfd before mounting it, which would have given a good opportunity to decompress it. |
Beta Was this translation helpful? Give feedback.
EROFS doesn't compress metadata, only data. The composefs EROFS is just metadata.
There's nothing stopping one from compressing it out of band and decompressing it before use, although that would currently mean the fsverity tree would need to be recomputed for example.
BTRFS does support both compression and fsverity, but I don't know if they're compatible...I suspect not.
What's your use case for compressing?