]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #11191 from renhwztetecs/renhw-wip-add-libcephfs
authorJohn Spray <jspray@redhat.com>
Tue, 25 Oct 2016 10:59:11 +0000 (11:59 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Oct 2016 10:59:11 +0000 (11:59 +0100)
libcephfs: add ceph_fsetattr&&ceph_lchmod&&ceph_lutime

Reviewed-by: John Spray <john.spray@redhat.com>
1  2 
src/libcephfs.cc
src/test/libcephfs/test.cc

index a6e9a6e8ccf8e680b8d7435ef6fc07279e61d56c,8611c81e4ffc85c2d93983d26731834692cd841a..40a7b50bda1dc4dfead48647898e83fbda7ebefa
@@@ -638,9 -631,17 +638,17 @@@ extern "C" int ceph_setattr(struct ceph
  {
    if (!cmount->is_mounted())
      return -ENOTCONN;
 -  return cmount->get_client()->setattr(relpath, attr, mask);
 +  return cmount->get_client()->setattr(relpath, attr, mask, cmount->default_perms);
  }
  
+ extern "C" int ceph_fsetattr(struct ceph_mount_info *cmount, int fd,
+                   struct stat *attr, int mask)
+ {
+   if (!cmount->is_mounted())
+     return -ENOTCONN;
+   return cmount->get_client()->fsetattr(fd, attr, mask, cmount->default_perms);
+ }
  extern "C" int ceph_setattrx(struct ceph_mount_info *cmount, const char *relpath,
                            struct ceph_statx *stx, int mask, int flags)
  {
Simple merge