34 int main(
const int argc,
char**
const argv)
63 iRes = fuse_main(argc, argv, &
adbfs_oper, NULL);
void adbnc_destroy(void *private_data)
FUSE callback function, called when the file system exits.
int initAdbncFs(const int argc, char **const argv)
Initialize the file system application.
int adbnc_mkdir(const char *pcPath, mode_t mode)
static struct fuse_operations adbfs_oper
Main struct for FUSE interface.
int adbnc_readdir(const char *pcPath, void *vpBuf, fuse_fill_dir_t filler, off_t iOffset, struct fuse_file_info *pFi)
FUSE callback to retrieve directory entries.
int adbnc_readlink(const char *pcPath, char *pcBuf, size_t iSize)
FUSE callback function to resolve a link.
int adbnc_statfs(const char *pcPath, struct statvfs *pFst)
FUSE callback function to retrieve statistics about the file system.
int adbnc_releasedir(const char *pcPath, struct fuse_file_info *pFi)
FUSE callback to release given directory.
int adbnc_access(const char *pcPath, int iMask)
FUSE callback to check whether file pcPath can be accessed.
int main(const int argc, char **const argv)
int adbnc_getattr(const char *pcPath, struct stat *pStatBuf)
FUSE callback function to retrieve file attributes.
int adbnc_write(const char *pcPath, const char *pcBuf, size_t iSize, off_t iOffset, struct fuse_file_info *pFi)
int adbnc_release(const char *pcPath, struct fuse_file_info *pFi)
FUSE callback called when FUSE is completely done with a file.
int adbnc_unlink(const char *pcPath)
FUSE callback function to remove (delete) the given file, symbolic link, hard link, or special node.
int adbnc_utimens(const char *pcPath, const struct timespec ts[2])
int adbnc_rmdir(const char *pcPath)
int adbnc_fsync(const char *pcPath, int iIsdatasync, struct fuse_file_info *pFi)
void * adbnc_init(struct fuse_conn_info *pConn)
FUSE callback function to initialize the file system.
int adbnc_open(const char *pcPath, struct fuse_file_info *pFi)
FUSE callback to open a file.
int adbnc_read(const char *pcPath, char *pcBuf, size_t iSize, off_t iOffset, struct fuse_file_info *pFi)
FUSE callback to read iSize bytes from the given file into the buffer pcBuf, beginning at iOffset byt...
int adbnc_truncate(const char *pcPath, off_t iSize)
int adbnc_rename(const char *pcFrom, const char *pcTo)
int adbnc_flush(const char *pcPath, struct fuse_file_info *pFi)
FUSE callback function called on each close so that the file system has a chance to report delayed er...
int adbnc_mknod(const char *pcPath, mode_t mode, dev_t rdev)
int adbnc_opendir(const char *pcPath, struct fuse_file_info *pFi)
FUSE callback to open a directory for reading.