The mkcfs tool is a command line tool for creating a CFS file system image.
cargo install mkcfscargo build --releaseFirst, you need to create a image file with the desired size. For example, to create a 1GB image file:
dd if=/dev/zero of=image.cfs bs=1M count=1024Then, you can create a CFS file system image with the mkcfs tool:
mkcfs image.cfs -b 4096Where -b specifies the block size of the file system. The default block size
is 4096 bytes.
For more information, please refer to the help message:
mkcfs --help