]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rbd: fix some typo
authorsongweibin <song.weibin@zte.com.cn>
Wed, 31 Jan 2018 03:25:05 +0000 (11:25 +0800)
committersongweibin <song.weibin@zte.com.cn>
Wed, 31 Jan 2018 09:34:35 +0000 (17:34 +0800)
Signed-off-by: songweibin <song.weibin@zte.com.cn>
doc/man/8/rbd.rst
src/pybind/rbd/rbd.pyx

index 9cae3f5120d6de9f15d21cc88b1e52fb1cf37459..e0fd26263201342416b98b2c5b82736e7ad02aa7 100644 (file)
@@ -275,7 +275,7 @@ Commands
 :command:`group snap rm` *group-snap-spec*
   Remove a snapshot from a group.
 
-:command:`group snap rename` *group-snap-spec* *snap-spec*
+:command:`group snap rename` *group-snap-spec* *snap-name*
   Rename group's snapshot.
 
 :command:`image-meta get` *image-spec* *key*
index cb936c1c37ee12c1203c93a4b01f8612cc5c71c6..97f0ddf382a6de4c54c714a5331fdd4583af05cd 100644 (file)
@@ -1579,7 +1579,7 @@ cdef class Group(object):
 
         :param image_ioctx: determines which RADOS pool the image belongs to.
         :type ioctx: :class:`rados.Ioctx`
-        :param name: the name of the image to remove
+        :param name: the name of the image to add
         :type name: str
 
         :raises: :class:`ObjectNotFound`
@@ -1598,7 +1598,7 @@ cdef class Group(object):
 
     def remove_image(self, image_ioctx, image_name):
         """
-        Remove an image to a group.
+        Remove an image from a group.
 
         :param image_ioctx: determines which RADOS pool the image belongs to.
         :type ioctx: :class:`rados.Ioctx`
@@ -1687,7 +1687,7 @@ cdef class Group(object):
             ret = rbd_group_snap_rename(self._ioctx, self._name, _old_snap_name,
                                         _new_snap_name)
         if ret != 0:
-            raise make_ex(ret, 'error removing group snapshot',
+            raise make_ex(ret, 'error renaming group snapshot',
                           group_errno_to_exception)
 
     def list_snaps(self):
@@ -3598,7 +3598,7 @@ cdef class GroupImageIterator(object):
 
     * ``name`` (str) - name of the image
 
-    * ``pool`` (int) - name of the pool this image belongs to
+    * ``pool`` (int) - id of the pool this image belongs to
 
     * ``state`` (int) - state of the image
     """
@@ -3614,7 +3614,7 @@ cdef class GroupImageIterator(object):
         while True:
             self.images = <rbd_group_image_info_t*>realloc_chk(self.images,
                                                                self.num_images *
-                                                                sizeof(rbd_group_image_info_t))
+                                                               sizeof(rbd_group_image_info_t))
             with nogil:
                 ret = rbd_group_image_list(group._ioctx, group._name,
                                            self.images,