fuse_nfs: Add chown

Libnfs already has exports for chown, 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:34 +02:00
parent 315112b923
commit b66121610d
1 changed files with 6 additions and 0 deletions

View File

@ -222,8 +222,14 @@ static int fuse_nfs_chmod(const char *path, mode_t mode)
return nfs_chmod(nfs, path, mode);
}
static int fuse_nfs_chown(const char *path, uid_t uid, gid_t gid)
{
return nfs_chown(nfs, path, uid, gid);
}
static struct fuse_operations nfs_oper = {
.chmod = fuse_nfs_chmod,
.chown = fuse_nfs_chown,
.create = fuse_nfs_create,
.getattr = fuse_nfs_getattr,
.link = fuse_nfs_link,