From: John Spray Date: Tue, 25 Oct 2016 10:59:11 +0000 (+0100) Subject: Merge pull request #11191 from renhwztetecs/renhw-wip-add-libcephfs X-Git-Tag: v11.1.0~521 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e5c43e9d9065e535ca1553dd713a55f9aa58535a;p=ceph.git Merge pull request #11191 from renhwztetecs/renhw-wip-add-libcephfs libcephfs: add ceph_fsetattr&&ceph_lchmod&&ceph_lutime Reviewed-by: John Spray --- e5c43e9d9065e535ca1553dd713a55f9aa58535a diff --cc src/libcephfs.cc index a6e9a6e8ccf8,8611c81e4ffc..40a7b50bda1d --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@@ -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) {