[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] Add documentation to the dm and dmraid pythong bindings. As well as to the
- From: Joel Granados <jgranado redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH] Add documentation to the dm and dmraid pythong bindings. As well as to the
- Date: Wed, 7 Jan 2009 07:33:23 -0500 (EST)
----- "Hans de Goede" <hdegoede redhat com> wrote:
> Hi,
>
> Disclaimer: I'm not familiar with the code I just reviewed!
>
> Joel Granados Moreno wrote:
>
> <snip>
>
> > + {"targets", (PyCFunction)pydm_targets, METH_NOARGS,
> > + "Scans for suppoerted targets. It does not expect any args. "
> > + "It returns a list of target objects."},
>
> typo / spelling: "suppoerted" -> supported
>
>
> > {NULL, NULL}
> > };
> >
> > diff --git a/dmraid.c b/dmraid.c
> > index e693512..3100768 100644
> > --- a/dmraid.c
> > +++ b/dmraid.c
> > @@ -265,10 +265,12 @@ pydmraid_dev_scanparts(PyObject *self,
> PyObject *args, PyObject *kwds)
> > static struct PyMethodDef pydmraid_dev_methods[] = {
> > {"rmpart",
> > (PyCFunction)pydmraid_dev_rmpart,
> > - METH_VARARGS | METH_KEYWORDS},
> > + METH_VARARGS | METH_KEYWORDS,
> > + "Removes the partition devined by the partno argument"},
>
> typo / spelling: "devined" -> defined
>
> > {"scanparts",
> > (PyCFunction)pydmraid_dev_scanparts,
> > - METH_NOARGS},
> > + METH_NOARGS,
> > + "(Re)scans all partition for the current device"},
>
> typo / spelling: "partition" -> partitions
>
> > @@ -1309,16 +1314,20 @@ out:
> > static struct PyMethodDef pydmraid_ctx_methods[] = {
> > {"discover_disks",
> > (PyCFunction)pydmraid_ctx_discover_disks,
> > - METH_VARARGS | METH_KEYWORDS},
> > + METH_VARARGS | METH_KEYWORDS,
> > + "Discover all disks in the system"},
> > {"discover_raiddevs",
> > (PyCFunction)pydmraid_ctx_discover_raiddevs,
> > - METH_VARARGS | METH_KEYWORDS},
> > + METH_VARARGS | METH_KEYWORDS,
> > + "Identifies which disks are part of a raid set"},
> > {"discover_raidsets",
> > (PyCFunction)pydmraid_ctx_discover_raidsets,
> > - METH_NOARGS},
> > + METH_NOARGS,
> > + "Discovers the raid sets in the system"},
> > {"get_raidsets",
> > (PyCFunction)pydmraid_ctx_get_raidsets,
> > - METH_VARARGS | METH_KEYWORDS},
> > + METH_VARARGS | METH_KEYWORDS,
> > + "Returns a list of all the raid sets in the system"},
> > {NULL},
> > };
> >
>
>
> I see that 3 of these methods take args, I think you should document
> which args
> and what they do.
hrm... didn't want to be that specific. but guess that it can't hurt.
thx for the review.
>
> Regards,
>
> Hans
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Joel Andres Granados
Red Hat / Brno Czech Republic
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]