From 8ba0a9cb5455ec7e5267cdd7586de2719678d4b6 Mon Sep 17 00:00:00 2001 From: "Frank S. Filz" Date: Mon, 18 Apr 2016 11:33:16 -0700 Subject: [PATCH] Add ceph_ll_mknod wrapper for ll_mknod Signed-off-by: Frank S. Filz --- src/include/cephfs/libcephfs.h | 4 ++++ src/libcephfs.cc | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index cdf8f0cfc5458..a0ce6ef5ad07f 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -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); diff --git a/src/libcephfs.cc b/src/libcephfs.cc index b01cf227abb2e..a9fa5b3a86de0 100644 --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@ -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, -- 2.39.5