[Libguestfs] [PATCH v2 1/2] New tool: virt-tail.
Richard W.M. Jones
rjones at redhat.com
Mon Oct 3 13:56:38 UTC 2016
On Mon, Oct 03, 2016 at 03:46:06PM +0200, Pino Toscano wrote:
> > +/* Add drives, inspect and mount. */
> > +static int
> > +add_and_mount (struct drv *drvs, struct mp *mps, int *windows_ret)
> > +{
>
> The 'windows_ret' out parameter does not seem used outside, so could
> be better to drop it for now/
Oops, a missing feature. I need to implement it!
> > + ret = disk_mtime (drvs->next);
>
> This may be better written as simple non-recursive loop, to avoid
> neverending loop, and make the code slightly more understandable to
> follow (IMHO).
This is actually copied from fish/options.c which works the same way.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
More information about the Libguestfs
mailing list