The PuzzleFS container filesystem
The PuzzleFS container filesystem
Posted Sep 26, 2023 12:45 UTC (Tue) by bluca (subscriber, #118303)In reply to: The PuzzleFS container filesystem by hsiangkao
Parent article: The PuzzleFS container filesystem
Posted Sep 26, 2023 13:40 UTC (Tue)
by hsiangkao (guest, #123981)
[Link] (9 responses)
Hi! Using EROFS + dm-verity + blockdevice + overlayfs (composefs-like model), you could already implement a clean file-based runtime dedup by using overlayfs.
I understand that you mean EROFS self-contained file-based runtime dedupe across images as you mentioned in some previous article. Actually we already have an internal version for internal products by Jingbo, but it's still unclean for now. We will try to clean up and post it to fsdevel mailing list later, but not quite sure it could land smoothly, anyway.
Posted Sep 26, 2023 14:17 UTC (Tue)
by bluca (subscriber, #118303)
[Link] (8 responses)
Posted Sep 26, 2023 14:30 UTC (Tue)
by alexl (subscriber, #19068)
[Link] (3 responses)
Posted Sep 26, 2023 14:52 UTC (Tue)
by hsiangkao (guest, #123981)
[Link] (2 responses)
I think if some blob storage layer is just an EROFS image, you could directly apply dm-verity on these layers.
We can also use fs-verity to verity the blob storage layers if these layers are on a RW fs (the current composefs does.)
Posted Sep 26, 2023 15:02 UTC (Tue)
by alexl (subscriber, #19068)
[Link] (1 responses)
Posted Sep 26, 2023 15:09 UTC (Tue)
by hsiangkao (guest, #123981)
[Link]
Posted Sep 26, 2023 14:35 UTC (Tue)
by hsiangkao (guest, #123981)
[Link] (3 responses)
Alternatively, as an EROFS self-containerd approach, EROFS could share page cache if files with same data across images without relying on overlayfs, anyway.
Posted Sep 26, 2023 15:57 UTC (Tue)
by bluca (subscriber, #118303)
[Link] (2 responses)
Posted Sep 26, 2023 16:08 UTC (Tue)
by hsiangkao (guest, #123981)
[Link] (1 responses)
In that case, memory of /usr/foo/a is deduplicated according to how overlayfs works since /usr/foo/a is on the same EROFS instance.
Posted Sep 26, 2023 16:57 UTC (Tue)
by bluca (subscriber, #118303)
[Link]
The PuzzleFS container filesystem
The PuzzleFS container filesystem
The PuzzleFS container filesystem
The PuzzleFS container filesystem
And check dm-verity root digests of these layers before mounting. I think that would be in the same effect, anyway.
The PuzzleFS container filesystem
The PuzzleFS container filesystem
I'm not sure if some people really rely on layering concept (such as system using raw partitions/devices without real filesystem storage), anyway.
The PuzzleFS container filesystem
- EROFS + dm-verity block device blobs as data only layers;
- a small overlayfs meta layer (with EROFS + dm-verity) to merge these data storage blobs into a merged rootfs.
Thus all layers are under dm-verity protection, so the whole image won't be tampered.
The PuzzleFS container filesystem
The PuzzleFS container filesystem
That already works without any extra built-in feature.
The PuzzleFS container filesystem