]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: fix docstring for librbd Python binding 13977/head
authorrunsisi <runsisi@zte.com.cn>
Wed, 15 Mar 2017 08:36:06 +0000 (16:36 +0800)
committerrunsisi <runsisi@zte.com.cn>
Wed, 15 Mar 2017 08:36:06 +0000 (16:36 +0800)
Signed-off-by: runsisi <runsisi@zte.com.cn>
src/pybind/rbd/rbd.pyx

index b4a1cd07f9f4b8bb992989ba1d4cf34ec6c64001..56037bb0bdc5b75651d4cd9d5c390f2b22e4a23d 100644 (file)
@@ -2333,7 +2333,7 @@ written." % (self.name, ret, length))
         :type oncomplete: completion
         :param fadvise_flags: fadvise flags for this read
         :type fadvise_flags: int
-        :returns: str - the data read
+        :returns: :class:`Completion` - the completion object
         :raises: :class:`InvalidArgument`, :class:`IOError`
         """
 
@@ -2375,20 +2375,19 @@ written." % (self.name, ret, length))
         Raises :class:`InvalidArgument` if part of the write would fall outside
         the image.
 
-        oncomplete will be called with the returned read value as
-        well as the completion:
+        oncomplete will be called with the completion:
 
-        oncomplete(completion, data_read)
+        oncomplete(completion)
 
-        :param offset: the offset to start reading at
+        :param data: the data to be written
+        :type data: bytes
+        :param offset: the offset to start writing at
         :type offset: int
-        :param length: how many bytes to read
-        :type length: int
-        :param oncomplete: what to do when the read is complete
+        :param oncomplete: what to do when the write is complete
         :type oncomplete: completion
-        :param fadvise_flags: fadvise flags for this read
+        :param fadvise_flags: fadvise flags for this write
         :type fadvise_flags: int
-        :returns: str - the data read
+        :returns: :class:`Completion` - the completion object
         :raises: :class:`InvalidArgument`, :class:`IOError`
         """