-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: initial commit for erofs support #25
base: main
Are you sure you want to change the base?
Conversation
d0480ec
to
4f4ab76
Compare
^ have a stacker PR that builds against this PR. |
Just one bats test is failing |
1b6bc44
to
5940164
Compare
Thanks for the update. I think I'm still missing something. I see |
pkg/erofs/erofs.go
Outdated
tmpErofs.Close() | ||
os.Remove(tmpErofs.Name()) | ||
defer os.Remove(tmpErofs.Name()) | ||
args := []string{tmpErofs.Name(), rootfs} | ||
compression := GzipCompression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably should be parameter right?
fb69535
to
3541b62
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #25 +/- ##
==========================================
- Coverage 15.68% 13.85% -1.84%
==========================================
Files 7 16 +9
Lines 1358 1718 +360
==========================================
+ Hits 213 238 +25
- Misses 1117 1440 +323
- Partials 28 40 +12 ☔ View full report in Codecov by Sentry. |
88dfd93
to
9dc7dfd
Compare
97e2b40
to
15cdcb2
Compare
https://lore.kernel.org/all/[email protected]/T/ |
Going to deprecate the double + and just rely on the root_hash annotation for verity |
8e5f19b
to
8ab7e49
Compare
Just tested build erofs image, atomfs mount and then lxc-execute. Works nicely! |
Before this commit, only squashfs was supported. However, there are other filesystems such as erofs that fit the same theme, and additional filesystem support requires refactoring and exposing a more generic filesystem interface. pkg/fs/fs.go - Filesystem interface pkg/squashfs - squashfs pkg/erofs - erofs pkg/common - filesystem-agnostic common routines pkg/verity - verity routines Signed-off-by: Ramkumar Chinchani <[email protected]>
Signed-off-by: Ramkumar Chinchani <[email protected]>
BREAKING-CHANGE: the layer media-type no longer contains "+verity" For a layer media-type, we add the fstype+compression+verity_present. Only one '+' is allowed as per following RFC. https://datatracker.ietf.org/doc/html/rfc6838#section-4.2 Instead just rely on "root_hash" annotation. Signed-off-by: Ramkumar Chinchani <[email protected]>
A second attempt, converging faster.
pkg/fs <- main interface .. everything calls into here, stacker, atomfs, atomfs-snapshotter
pkg/squashfs
pkg/erofs
pkg/common <- common fs routines .. should probably become "internal"
pkg/verity <- verity stuff
pkg/molecule
pkg/log
pkg/mount