]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FuseStore: no-op chmod
authorSage Weil <sage@redhat.com>
Thu, 7 Jan 2016 17:48:55 +0000 (12:48 -0500)
committerSage Weil <sage@redhat.com>
Wed, 27 Jan 2016 19:06:14 +0000 (14:06 -0500)
This makes mkdir(1) happy.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/FuseStore.cc

index dc15b556ec362a3222d291ea5b9af179331da2cf..775771f5552d91d616f36a00da819a0f99fa4e17 100644 (file)
@@ -614,6 +614,11 @@ static int os_mkdir(const char *path, mode_t mode)
   return 0;
 }
 
+static int os_chmod(const char *path, mode_t mode)
+{
+  return 0;
+}
+
 static int os_create(const char *path, mode_t mode, struct fuse_file_info *fi)
 {
   coll_t cid;
@@ -907,7 +912,7 @@ static struct fuse_operations fs_oper = {
   symlink: 0,
   rename: 0,
   link: 0,
-  chmod: 0,
+  chmod: os_chmod,
   chown: 0,
   truncate: os_truncate,
   utime: 0,