Skip to content

Commit abdd4d9

Browse files
bakanovskiinikias
authored andcommitted
Add chown and chmod stubs
Fixes: #110
1 parent 784c98d commit abdd4d9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ifuse.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,16 @@ int ifuse_flush(const char *path, struct fuse_file_info *fi)
447447
return 0;
448448
}
449449

450+
int ifuse_chmod(const char *path, mode_t mode, struct fuse_file_info *fi)
451+
{
452+
return 0;
453+
}
454+
455+
int ifuse_chown(const char *file, uid_t user, gid_t group, struct fuse_file_info *fi)
456+
{
457+
return 0;
458+
}
459+
450460
int ifuse_statfs(const char *path, struct statvfs *stats)
451461
{
452462
afc_client_t afc = fuse_get_context()->private_data;
@@ -594,6 +604,8 @@ static struct fuse_operations ifuse_oper = {
594604
.rename = ifuse_rename,
595605
.utimens = ifuse_utimens,
596606
.fsync = ifuse_fsync,
607+
.chmod = ifuse_chmod,
608+
.chown = ifuse_chown,
597609
.release = ifuse_release,
598610
.init = ifuse_init,
599611
.destroy = ifuse_cleanup

0 commit comments

Comments
 (0)