Implementation of extended filesystem 2 commands ext2_checker, ext2_cp, ext2_ln, ext2_mkdir, ext2_restore, and ext2_rm.
Checkout my automated blackbox test suite for them omarchehab98/ext2-test-suite
make
Requires disk images formatted using the ext2 filesystem specification.
You can download sample disk images from the test suite repository omarchehab98/ext2-test-suite, find them in src/fixtures/images
.
usage: ext2_mkdir <image file name> <path>
Creates a directory in the image
at the path
.
usage: "usage: %s <image file name> <path to source file> <path to dest>
Copies source
from the host to the image
at the path
.
usage: ext2_ln [-s] <image file name> <source path> <dest path>
Creates a hard or symbolic link at dest path
pointing to source path
.
usage: ext2_rm <image file name> <path>
Removes a file from image
at the path
.
usage: ext2_restore <image file name> <path>
Restores a removed file from image
at the path
.
usage: ext2_checker <image file name>
Checks the ext2 filesystem for inconsistencies and fixes them.
usage: ext2_dump <image file name>
Dumps the super block, block groups, inodes, datablocks, and directory entries standard out.