From: runsisi Date: Wed, 15 Mar 2017 08:36:06 +0000 (+0800) Subject: pybind: fix docstring for librbd Python binding X-Git-Tag: v12.0.1~76^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13977%2Fhead;p=ceph.git pybind: fix docstring for librbd Python binding Signed-off-by: runsisi --- diff --git a/src/pybind/rbd/rbd.pyx b/src/pybind/rbd/rbd.pyx index b4a1cd07f9f4..56037bb0bdc5 100644 --- a/src/pybind/rbd/rbd.pyx +++ b/src/pybind/rbd/rbd.pyx @@ -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` """