def _sizes(dev):
 dev = _devbase(dev)
 block_sizes = ('hw_sector_size', 'minimum_io_size', 'physical_block_size', 'logical_block_size')
 discard_sizes = ('discard_max_bytes', 'discard_max_hw_bytes')
 sysfs = __salt__['sysfs.read'](('size', 'queue/hw_sector_size', '../queue/hw_sector_size', 'queue/discard_max_bytes', '../queue/discard_max_bytes'), root=_syspath(dev))
 discard = sysfs.get('queue/discard_max_bytes', sysfs.get('../queue/discard_max_bytes', None))
 block = sysfs.get('queue/hw_sector_size', sysfs.get('../queue/hw_sector_size', None))
 return ((512 * sysfs['size']), block, discard)

def _sizes ( dev ) : dev = _devbase ( dev ) block_sizes = ( 'hw_sector_size' , 'minimum_io_size' , 'physical_block_size' , 'logical_block_size' ) discard_sizes = ( 'discard_max_bytes' , 'discard_max_hw_bytes' ) sysfs = __salt__ [ 'sysfs.read' ] ( ( 'size' , 'queue/hw_sector_size' , '../queue/hw_sector_size' , 'queue/discard_max_bytes' , '../queue/discard_max_bytes' ) , root = _syspath ( dev ) ) discard = sysfs . get ( 'queue/discard_max_bytes' , sysfs . get ( '../queue/discard_max_bytes' , None ) ) block = sysfs . get ( 'queue/hw_sector_size' , sysfs . get ( '../queue/hw_sector_size' , None ) ) return ( ( 512 * sysfs [ 'size' ] ) , block , discard )
return neigh useless sizing info about a blockdev :return: .