Introduce EROFS support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v15 Latest3 patches 3 repliesIn review
- v143 patches 10 repliesSuperseded
- v133 patches 1 replySuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v12 | 2 patches | 2 replies | Superseded | |
| v11 | 2 patches | 5 replies | Superseded |
changelog since v12 from the cover letter
- drop unnecessary check of align in ALIGN_UP_OVF() sicne it is mostly
a non zero const that we can trust suggested by Vladimir and Boyang:
https://lore.kernel.org/grub-devel/CAEaD8JNwa8W=3LvaVeDG0hByz10+XHEDwCsV8TQe5md_13s2jg@mail.gmail.com
Patches in v15 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | safemath: Add ALIGN_UP_OVF() that checks for {over, under}flowinclude/ | +16 | 0 replies | |
| 2/3 | fs/erofs: Add support for EROFSINSTALL Makefile.util.def docs/ +2 more | +1012 | 0 replies | |
| 3/3 | fs/erofs: Add tests for EROFS in grub-fs-tester.gitignore Makefile.util.def tests/ +1 more | +52 | 3 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Kiper | Daniel Axtens | Glenn Washburn |
|---|---|---|---|
| 1/3 | R-b | ||
| 2/3 | T-b | ||
| 3/3 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v15 0/3] Introduce EROFS support
Hi folks,
EROFS [1] is a lightweight read-only filesystem designed for performance which has already been shipped in most Linux distributions as well as widely used in several scenarios, such as Android system partitions, container images, and rootfs for embedded devices.
This patch brings EROFS uncompressed support together with related tests. Now, it's possible to boot directly through GRUB with an EROFS rootfs.
EROFS compressed files will be supported later since it has more work to polish.
[1] https://erofs.docs.kernel.org
v14: https://lore.kernel.org/grub-devel/[email protected]
changelog since v12:
- drop unnecessary check of align in ALIGN_UP_OVF() sicne it is mostly
a non zero const that we can trust suggested by Vladimir and Boyang:
https://lore.kernel.org/grub-devel/CAEaD8JNwa8W=3LvaVeDG0hByz10+XHEDwCsV8TQe5md_13s2jg@mail.gmail.com
Reviewed-by Link (Commit 1): https://lore.kernel.org/grub-devel/ZkuADi5z+e%[email protected]
Tested-by Link (Commit 2): https://lists.gnu.org/archive/html/grub-devel/2024-05/msg00001.html
Reviewed-by Link (Commit 3): https://lists.gnu.org/archive/html/grub-devel/2024-04/msg00101.html
Reviewed-by Link (Commit 3): https://lore.kernel.org/grub-devel/[email protected]/
Gao Xiang (1):
safemath: Add ALIGN_UP_OVF() that checks for {over,under}flow
Yifan Zhao (2):
fs/erofs: Add support for EROFS
fs/erofs: Add tests for EROFS in grub-fs-tester
.gitignore | 1 + INSTALL | 8 +- Makefile.util.def | 7 + docs/grub.texi | 3 +- grub-core/Makefile.core.def | 5 + grub-core/fs/erofs.c | 1000 ++++++++++++++++++++++++++++++++++ include/grub/safemath.h | 16 + tests/erofs_test.in | 20 + tests/util/grub-fs-tester.in | 32 +- 9 files changed, 1080 insertions(+), 12 deletions(-) create mode 100644 grub-core/fs/erofs.c create mode 100644 tests/erofs_test.in
Interdiff against v14:
include/grub/safemath.h +7 -7
@@ -32,19 +32,19 @@#define grub_cast (a, res) grub_add ((a), 0, (res)) +/* +* It's caller's responsibility that `align` should not equal to 0 and +* it must be a power of 2. +*/ #define ALIGN_UP_OVF (v, align, res) \ ({ \ bool __failed; \ - typeof(v) a; \ + typeof(v) __a = ((typeof(v))(align) - 1); \ \ - __failed = grub_sub ((typeof(v))(align), 1, &a); \ + __failed = grub_add (v, __a, res); \ if (__failed == false) \ { \ - __failed = grub_add (v, a, res); \ - if (__failed == false) \ - { \ - *(res) &= ~a; \ - } \ + *(res) &= ~__a; \ } \ __failed;})
Signature · 7 lines
2.39.3 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel