]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add ceph_ll_mknod wrapper for ll_mknod 8648/head
authorFrank S. Filz <ffilzlnx@mindspring.com>
Mon, 18 Apr 2016 18:33:16 +0000 (11:33 -0700)
committerFrank S. Filz <ffilzlnx@mindspring.com>
Mon, 18 Apr 2016 18:33:16 +0000 (11:33 -0700)
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
src/include/cephfs/libcephfs.h
src/libcephfs.cc

index cdf8f0cfc54584feb79d84b340b2884354b11504..a0ce6ef5ad07f5d4960c1cc0119afe1b3ef7f44d 100644 (file)
@@ -1434,6 +1434,10 @@ int ceph_ll_create(struct ceph_mount_info *cmount, struct Inode *parent,
                   const char *name, mode_t mode, int flags,
                   struct stat *attr, struct Inode **out, Fh **fhp,
                   int uid, int gid);
+int ceph_ll_mknod(struct 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);
 int ceph_ll_mkdir(struct ceph_mount_info *cmount, struct Inode *parent,
                  const char *name, mode_t mode, struct stat *attr,
                  Inode **out, int uid, int gid);
index b01cf227abb2e4b7f717f647f4ad083352768b76..a9fa5b3a86de08bd9cd14b53d709d8c61b31c817 100644 (file)
@@ -1515,6 +1515,15 @@ extern "C" int ceph_ll_create(class ceph_mount_info *cmount,
                                           attr, out, fhp, uid, gid);
 }
 
+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)
+{
+  return (cmount->get_client())->ll_mknod(parent, name, mode, rdev,
+                                         attr, out, uid, gid);
+}
+
 extern "C" int ceph_ll_mkdir(class ceph_mount_info *cmount,
                             Inode *parent, const char *name,
                             mode_t mode, struct stat *attr, Inode **out,