int ceph_lazyio_propagate(ceph_mount_info *cmount, int fd, int64_t offset, size_t count)
int ceph_lazyio_synchronize(ceph_mount_info *cmount, int fd, int64_t offset, size_t count)
int ceph_fallocate(ceph_mount_info *cmount, int fd, int mode, int64_t offset, int64_t length)
+
int ceph_chmod(ceph_mount_info *cmount, const char *path, mode_t mode)
int ceph_lchmod(ceph_mount_info *cmount, const char *path, mode_t mode)
int ceph_fchmod(ceph_mount_info *cmount, int fd, mode_t mode)
+ int ceph_chmodat(ceph_mount_info *cmount, int dirfd, const char *relpath,
+ mode_t mode, int flags)
+
int ceph_chown(ceph_mount_info *cmount, const char *path, int uid, int gid)
int ceph_lchown(ceph_mount_info *cmount, const char *path, int uid, int gid)
int ceph_fchown(ceph_mount_info *cmount, int fd, int uid, int gid)
if ret < 0:
raise make_ex(ret, "error in chmod {}".format(path.decode('utf-8')))
+ def chmodat(self, dirfd, relpath, mode, flags) -> None:
+ self.require_state("mounted")
+
+ if not isinstance(dirfd, int):
+ raise TypeError('"dirfd "must be an int')
+ if not isinstance(mode, int):
+ raise TypeError('mode must be an int')
+ if not isinstance(flags, int):
+ raise TypeError('flags must be an int')
+
+ relpath = cstr(relpath, 'relpath')
+ cdef:
+ int _dirfd = dirfd
+ char* _relpath = relpath
+ int _mode = mode
+ int _flags = flags
+
+ with nogil:
+ ret = ceph_chmodat(self.cluster, _dirfd, _relpath, _mode, _flags)
+
+ if ret < 0:
+ raise make_ex(ret, f"error in chmod {relpath.decode('utf-8')}")
+
def lchmod(self, path, mode) -> None:
"""
Change file mode. If the path is a symbolic link, it won't be dereferenced.
pass
int ceph_fallocate(ceph_mount_info *cmount, int fd, int mode, int64_t offset, int64_t length):
pass
+
int ceph_chmod(ceph_mount_info *cmount, const char *path, mode_t mode):
pass
int ceph_lchmod(ceph_mount_info *cmount, const char *path, mode_t mode):
pass
int ceph_fchmod(ceph_mount_info *cmount, int fd, mode_t mode):
pass
+ int ceph_chmodat(ceph_mount_info *cmount, int dirfd, const char *relpath,
+ mode_t mode, int flags):
+ pass
+
int ceph_chown(ceph_mount_info *cmount, const char *path, int uid, int gid):
pass
int ceph_lchown(ceph_mount_info *cmount, const char *path, int uid, int gid):