用于测试 ext4 文件系统。
- WSL2 Ubuntu22.04
- Rust 版本:nightly-2024-06-01
- rustc 1.80.0-nightly (ada5e2c7b 2024-05-31)
#env
sudo apt install libfuse-dev pkg-config
sudo apt install fuse3 libfuse3-dev
sh gen_img.sh
#cargo run /path/to/mountpoint
cargo run ./foo/
# Run in another terminal.
cd foo
ls
cd test_files
ls
touch test_file_create
rm -rf test_file_create
mkdir test_dir_mk
rm -rf test_dir_mk
echo "AAAAAAAA" > test_write
cat test_write
cat 0.txt