Commit graph

3 commits

Author SHA1 Message Date
Keiichi Watanabe
0ebf8a6000 ext2: Support customized parameters
Allow changing {blocks,inodes}_per_group.

BUG=b:329359333
TEST=cargo test

Change-Id: I1646f80dbe92dbdafbe4147a8abbd141784aff69
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5400932
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Takaya Saeki <takayas@chromium.org>
2024-05-07 10:46:31 +00:00
Keiichi Watanabe
4d93ead5fc ext2: Add example mkfs program
Add example/mkfs.rs to demonstorate how to use the library and
make it easier to use it for debugging with existing e2fsprogs
tools.

BUG=b:329359333
TEST=cargo run --example mkfs -- --path ./foo.ext2

Change-Id: I98966d317f053794607b722f38493568d0d96ced
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5404439
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Takaya Saeki <takayas@chromium.org>
2024-04-17 06:16:54 +00:00
Keiichi Watanabe
ae8886cbb7 ext2: Add initial implementation of ext2 crate
Add a logic to create a valid superblock.
This crate is supposed to be used for implementing virito-pmem-ext2,
which is a virtio-pmem where ext2 file system is constructed at
boot time. See go/virtio-pmem-ext2 for the details.

BUG=b:329359333
TEST=cargo test

Change-Id: Ib86c0c8e9562e885266d3b321f9f2e302581b90a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5404370
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Reviewed-by: Takaya Saeki <takayas@chromium.org>
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2024-04-17 03:04:17 +00:00