생성된 콜백 함수들을 ops 구조체에 등록하여 반환한다.
232 {
233 static struct fuse_operations ops;
234 memset(&ops, 0, sizeof(ops));
250 return &ops;
251}
static int sfuse_truncate_cb(const char *path, off_t size, struct fuse_file_info *fi)
파일 크기 변경 콜백
static int sfuse_fsync_cb(const char *path, int datasync, struct fuse_file_info *fi)
fsync 콜백
static int sfuse_read_cb(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi)
파일 읽기 콜백
static int sfuse_open_cb(const char *path, struct fuse_file_info *fi)
파일 열기 콜백
static int sfuse_rename_cb(const char *from, const char *to, unsigned int flags)
이름 변경 콜백
static int sfuse_getattr_cb(const char *path, struct stat *stbuf, struct fuse_file_info *fi)
파일/디렉터리 속성 조회 콜백
static int sfuse_create_cb(const char *path, mode_t mode, struct fuse_file_info *fi)
파일 생성 콜백
static int sfuse_utimens_cb(const char *path, const struct timespec tv[2], struct fuse_file_info *fi)
파일/디렉터리 타임스탬프 갱신 콜백
static int sfuse_unlink_cb(const char *path)
파일 삭제 콜백
static int sfuse_write_cb(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fi)
파일 쓰기 콜백
static int sfuse_mkdir_cb(const char *path, mode_t mode)
디렉터리 생성 콜백
static int sfuse_readdir_cb(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi, enum fuse_readdir_flags flags)
디렉터리 목록 조회 콜백
static int sfuse_access_cb(const char *path, int mask)
access 콜백
static int sfuse_rmdir_cb(const char *path)
디렉터리 삭제 콜백
static int sfuse_flush_cb(const char *path, struct fuse_file_info *fi)
flush 콜백