summaryrefslogtreecommitdiffstats
path: root/src/libcephfs.cc
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2016-10-24 16:03:00 +0200
committerJeff Layton <jlayton@redhat.com>2016-10-25 19:06:29 +0200
commit4341b09891cb27d7d671ebb86d288513ca333f7b (patch)
tree8aab2d4e2fdb13ce0d7727591c41d743b0d52056 /src/libcephfs.cc
parentclient: add ll_createx (diff)
downloadceph-4341b09891cb27d7d671ebb86d288513ca333f7b.tar.xz
ceph-4341b09891cb27d7d671ebb86d288513ca333f7b.zip
client: convert args to ceph_ll_mknod to use ceph_statx and UserPerm
The underlying plumbing needs to remain the same for FUSE though. Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'src/libcephfs.cc')
-rw-r--r--src/libcephfs.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libcephfs.cc b/src/libcephfs.cc
index 4f4e99e7fd9..79ced12d368 100644
--- a/src/libcephfs.cc
+++ b/src/libcephfs.cc
@@ -1547,14 +1547,14 @@ extern "C" int ceph_ll_create(class ceph_mount_info *cmount,
fhp, stx, want, lflags, *perms);
}
-extern "C" int ceph_ll_mknod(class ceph_mount_info *cmount,
- struct Inode *parent, const char *name,
- mode_t mode, dev_t rdev, struct stat *attr,
- struct Inode **out, int uid, int gid)
-{
- UserPerm perms(uid, gid);
- return (cmount->get_client())->ll_mknod(parent, name, mode, rdev,
- attr, out, perms);
+extern "C" int ceph_ll_mknod(class ceph_mount_info *cmount, Inode *parent,
+ const char *name, mode_t mode, dev_t rdev,
+ Inode **out, struct ceph_statx *stx,
+ unsigned want, unsigned flags,
+ const UserPerm *perms)
+{
+ return (cmount->get_client())->ll_mknodx(parent, name, mode, rdev,
+ out, stx, want, flags, *perms);
}
extern "C" int ceph_ll_mkdir(class ceph_mount_info *cmount,