def _get_dev_size(dev, module):
 blockdev_cmd = module.get_bin_path('blockdev', required=True)
 (rc, devsize_in_bytes, err) = module.run_command(('%s %s %s' % (blockdev_cmd, '--getsize64', dev)))
 return int(devsize_in_bytes)

def _get_dev_size ( dev , module ) : blockdev_cmd = module . get_bin_path ( 'blockdev' , required = True ) ( rc , devsize_in_bytes , err ) = module . run_command ( ( '%s %s %s' % ( blockdev_cmd , '--getsize64' , dev ) ) ) return int ( devsize_in_bytes )
return size in bytes of device .