fuse_nfs: Add chmod

Libnfs already has exports for chmod, hook them up to the fuse example.

Signed-off-by: Alexander Graf <agraf@suse.de>
libnfs-4.0.0-vitalif
Alexander Graf 2015-09-11 11:23:02 +02:00
parent d1709ab573
commit 315112b923
1 changed files with 6 additions and 0 deletions

View File

@ -217,7 +217,13 @@ static int fuse_nfs_link(const char *from, const char *to)
return nfs_link(nfs, from, to);
}
static int fuse_nfs_chmod(const char *path, mode_t mode)
{
return nfs_chmod(nfs, path, mode);
}
static struct fuse_operations nfs_oper = {
.chmod = fuse_nfs_chmod,
.create = fuse_nfs_create,
.getattr = fuse_nfs_getattr,
.link = fuse_nfs_link,