libvirt_storagevolume_get_info Get storagevolume information
&reftitle.description; array libvirt_storagevolume_get_info resource volume resource

This function returns array containing volume information

Warning

. This function returns values that may be bigger than 32bit integer limit. Please read this note for more details.

&reftitle.parameters;

volume resource

  Connection resource of volume

&reftitle.returnvalues;

Array with volume information. &false; on failure

&reftitle.examples;

`libvirt_storagevolume_get_info` example

Array with volume information

    <?php

    	$conn=libvirt_connect($uri,true);
    	$pool=libvirt_storagepools_lookup_by_name($conn,'default');
    	$volume=libvirt_storagevolume_lookup_by_name($pool,'volume1');
    	$volumeInfo=libtvirt_storagevolume_get_info($volue);

    	var_dump($volumeInfo);
    ?>

&example.outputs.similar;

    array(3) {
      ["type"]=>
      int(1)
      ["capacity"]=>
      int(2147483648)
      ["allocation"]=>
      int(2147483648)
    }

&reftitle.seealso;

- `libvirt_storagevolume_lookup_by_name`
- `libvirt_storagevolume_get_xml_desc`
- `libvirt_storagevolume_create_xml`