Thanks - pushed with all but one of the updates suggested.
I didn't rewrite the loop to not use len, as that code was copied from
the already working code in src/drives.c. Possibly we need some kind
of "validate string only contains chars in this set" function.
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