[Libguestfs] [RFC PATCH v1 2/3] daemon: devsparts: add is_partitioned_device function
Richard W.M. Jones
rjones at redhat.com
Tue Jan 23 10:15:10 UTC 2018
On Tue, Jan 23, 2018 at 12:44:12AM +0200, Mykola Ivanets wrote:
> The function takes one argument - device path (e.g. /dev/sda) and returns true if device contains partition(s) or false otherwise. The function look in /sys/block/<device>/ for entries starting with <device>, eg. /sys/block/sda/sda1.
This is OK, but patches 2 & 3 should be combined.
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