I use -s regularly to find the size of a file. It works cross platform.Is there a similar well tested way of finding the size of a block device?We are not talking the size of a filesystem or the free space on a file system, but the size of the actual block device?
Perl: General way of finding size of block device
perl;block device