Skip to content

Commit

Permalink
fuse文件系统框架 (#861)
Browse files Browse the repository at this point in the history
* fuse文件系统示例

* 添加文件创建功能

* 添加touch创建文件功能

* 解决问题

---------

Co-authored-by: qcloud <[email protected]>
  • Loading branch information
liuslient and qcloud authored Jul 24, 2024
1 parent 135f40a commit 8a1c95b
Show file tree
Hide file tree
Showing 5 changed files with 483 additions and 0 deletions.
32 changes: 32 additions & 0 deletions eBPF_Supermarket/Filesystem_Subsystem/fast_fuse/difuse/README.md
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
```
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.
Loading

0 comments on commit 8a1c95b

Please sign in to comment.