Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuse文件系统框架 #861

Merged
merged 7 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading