blockdev_getss


Description:

[ Version ( since = "1.9.3" ) ]
public int32 blockdev_getss (string device) throws Error

get sectorsize of block device

This returns the size of sectors on a block device. Usually 512, but can be larger for modern devices.

(Note, this is not the size in sectors, use blockdev_getsz for that).

This uses the blockdev(8) command.

Parameters:

this

A GuestfsSession object

Returns:

the returned value, or -1 on error