nr_devices


Description:

[ Version ( since = "1.19.15" ) ]
public int32 nr_devices () throws Error

return number of whole block devices (disks) added

This returns the number of whole block devices that were added. This is the same as the number of devices that would be returned if you called list_devices.

To find out the maximum number of devices that could be added, call max_disks.

Parameters:

this

A GuestfsSession object

Returns:

the returned value, or -1 on error