]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/cephfs: Fix docstring of get_layout 41133/head
authorNiklas Hambüchen <mail@nh2.me>
Tue, 4 May 2021 02:58:06 +0000 (04:58 +0200)
committerKefu Chai <kchai@redhat.com>
Wed, 5 May 2021 09:52:45 +0000 (17:52 +0800)
It was copy-pasted from another function.
Fixed by copy-pasting the docstring from the C docs.

Signed-off-by: Niklas Hambuechen <mail@nh2.me>
src/pybind/cephfs/cephfs.pyx

index e536fcbe5eb31191c38eeb8ef3904ea6d3f895f3..e8e8c1f91540ae2b1502355e0329527c4988f37f 100644 (file)
@@ -2581,9 +2581,9 @@ cdef class LibCephFS(object):
 
     def get_layout(self, fd):
         """
-        Set ceph client session timeout. Must be called before mount.
+        Get the file layout from an open file descriptor.
 
-        :param fd: file descriptor of the file/directory for which to get the layout
+        :param fd: the open file descriptor referring to the file to get the layout of.
         """
 
         if not isinstance(fd, int):