-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fuse文件系统示例 * 添加文件创建功能 * 添加touch创建文件功能 * 解决问题 --------- Co-authored-by: qcloud <[email protected]>
- Loading branch information
Showing
5 changed files
with
483 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
eBPF_Supermarket/Filesystem_Subsystem/fast_fuse/difuse/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# DIFUSE | ||
|
||
## 代码结构 | ||
|
||
``` | ||
. | ||
├── README.md | ||
├── src | ||
│ ├── difuse.c 源码 | ||
│ ├── Makefile | ||
│ └── mountpoints 挂载目录 | ||
└── test | ||
└── test.sh 测试脚本 | ||
``` | ||
|
||
|
||
|
||
## Build | ||
|
||
在`src`目录下执行`make` | ||
|
||
```bash | ||
cd src | ||
make | ||
``` | ||
|
||
在`test`目录下执行`test`脚本 | ||
|
||
```bash | ||
cd test | ||
./test.sh | ||
``` |
29 changes: 29 additions & 0 deletions
29
eBPF_Supermarket/Filesystem_Subsystem/fast_fuse/difuse/src/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Makefile for FUSE difuse example | ||
|
||
# Compiler | ||
CC = gcc | ||
|
||
# Compiler flags | ||
CFLAGS = -Wall `pkg-config fuse3 --cflags` | ||
|
||
# Linker flags | ||
LDFLAGS = `pkg-config fuse3 --libs` | ||
|
||
# Source files | ||
SRCS = difuse.c | ||
|
||
# Output executable | ||
TARGET = difuse | ||
|
||
# Build target | ||
all: $(TARGET) | ||
|
||
# Rule to build the target | ||
$(TARGET): $(SRCS) | ||
$(CC) $(CFLAGS) -o $(TARGET) $(SRCS) $(LDFLAGS) | ||
|
||
# Clean rule | ||
clean: | ||
rm -f $(TARGET) | ||
|
||
.PHONY: all clean |
Binary file not shown.
Oops, something went wrong.