blockdev_getsz


Description:

[ Version ( since = "1.9.3" ) ]
public int64 blockdev_getsz (string device) throws Error

get total size of device in 512-byte sectors

This returns the size of the device in units of 512-byte sectors (even if the sectorsize isn't 512 bytes ... weird).

See also blockdev_getss for the real sector size of the device, and blockdev_getsize64 for the more useful *size in bytes*.

This uses the blockdev(8) command.

Parameters:

this

A GuestfsSession object

Returns:

the returned value, or -1 on error




2022 vala-language.org