81 fuse_fill_dir_t filler, off_t offset);
90int fs_open(
struct sfuse_fs *fs,
const char *path,
struct fuse_file_info *fi);
101int fs_read(
struct sfuse_fs *fs,
const char *path,
char *buf,
size_t size,
114 size_t size, off_t offset);
125 struct fuse_file_info *fi);
178 const struct timespec tv[2]);
187int fs_flush(
struct sfuse_fs *fs,
const char *path,
struct fuse_file_info *fi);
198 struct fuse_file_info *fi);
int fs_getattr(struct sfuse_fs *fs, const char *path, struct stat *stbuf)
파일/디렉터리 속성 조회
bool g_force_format
강제 포맷 옵션 플래그
int fs_mkdir(struct sfuse_fs *fs, const char *path, mode_t mode)
디렉터리 생성
struct sfuse_fs * fs_initialize(const char *path, int *error_out)
파일 시스템 초기화
int fs_read(struct sfuse_fs *fs, const char *path, char *buf, size_t size, off_t offset)
파일 읽기
void fs_teardown(struct sfuse_fs *fs)
파일 시스템 정리
int fs_create(struct sfuse_fs *fs, const char *path, mode_t mode, struct fuse_file_info *fi)
파일 생성
int fs_truncate(struct sfuse_fs *fs, const char *path, off_t size)
파일 크기 조정 (truncate)
struct fuse_operations * sfuse_get_operations(void)
SFUSE용 FUSE operations 구조체 반환
int fs_utimens(struct sfuse_fs *fs, const char *path, const struct timespec tv[2])
파일의 시간 속성 변경 (utimens)
int fs_rmdir(struct sfuse_fs *fs, const char *path)
디렉터리 삭제
int fs_resolve_path(struct sfuse_fs *fs, const char *path, uint32_t *out_ino)
경로를 inode 번호로 변환
int fs_open(struct sfuse_fs *fs, const char *path, struct fuse_file_info *fi)
파일 열기
int fs_fsync(struct sfuse_fs *fs, const char *path, int datasync, struct fuse_file_info *fi)
FUSE에서 fsync 요청 처리
int fs_unlink(struct sfuse_fs *fs, const char *path)
파일 삭제
int fs_readdir(struct sfuse_fs *fs, const char *path, void *buf, fuse_fill_dir_t filler, off_t offset)
디렉터리 내용 읽기
int fs_access(struct sfuse_fs *fs, const char *path, int mask)
접근 권한 검사
int fs_write(struct sfuse_fs *fs, const char *path, const char *buf, size_t size, off_t offset)
파일 쓰기
int fs_rename(struct sfuse_fs *fs, const char *from, const char *to)
파일 또는 디렉터리 이름 변경
int fs_flush(struct sfuse_fs *fs, const char *path, struct fuse_file_info *fi)
FUSE에서 플러시 요청 처리
아이노드 비트맵과 블록 비트맵을 함께 담는 구조체
struct sfuse_bitmaps * bmaps
struct sfuse_superblock sb
struct sfuse_inode_block * inode_table