[ Version ( since = "1.9.3" ) ]
public int32 blockdev_getbsz (string device) throws Error
get blocksize of block device
This returns the block size of a device.
Note: this is different from both *size in blocks* and *filesystem block size*. Also this setting is not really used by anything. You should probably not use it for anything. Filesystems have their own idea about what block size to choose.
This uses the blockdev(8) command.
this |
A GuestfsSession object |
the returned value, or -1 on error |