# simple_filesystem **Repository Path**: youshanli/simple_filesystem ## Basic Information - **Project Name**: simple_filesystem - **Description**: 尝试编写一个简单的内核空间磁盘文件系统。 - **Primary Language**: C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-03-29 - **Last Updated**: 2023-04-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # simple_filesystem linux的文件系统驱动程序 ## How to use this? 1. Compile 建议linux Kernel 4.14及以上,本案例以Kernel 5.10为例。从checkedout目录运行make即可。 2. Test ````shell mkdir test_dir dd bs=4096 count=100 if=/dev/zero of=image ./mkfs image insmod HUST_fs.ko mount -o loop -t HUST_fs image test_dir/ sudo chmod 777 test_dir -R dmesg # sudo umount test_dir/ # sudo rmmod HUST_fs ```` 3. File operations ````shell cd test_dir cat file echo "Hello World!" > file cat file ````