static int fuse_exfat_create(const char* path, mode_t mode, struct fuse_file_info* fi) { struct exfat_node* node; int rc; exfat_debug("[%s] %s 0%ho", __func__, path, mode); rc = exfat_mknod(&ef, path); if (rc != 0) return rc; rc = exfat_lookup(&ef, &node, path); if (rc != 0) return rc; set_node(fi, node); return 0; }
static int fuse_exfat_mknod(const char* path, mode_t mode, dev_t dev) { exfat_debug("[%s] %s 0%ho", __func__, path, mode); return exfat_mknod(&ef, path); }