'Returns a dictionary mapping devices->(# of blocks) based on
\'fdisk -l\' and /proc/partitions'

def get_device_map(self):

    dev_regex = '/dev/[A-Za-z0-9/]+'
    r = re.compile(('Disk    (%s):' % dev_regex))
    fdiskout = '\n'.join(self.ssh.execute('fdisk    -l    2>/dev/null'))
    proc_parts = '\n'.join(self.ssh.execute('cat    /proc/partitions'))
    devmap = {}
    for dev in r.findall(fdiskout):
        short_name = dev.replace('/dev/', '')
        r = re.compile(('(\\d+)\\s+%s(?:\\s+|$)' % short_name))
        devmap[dev] = int(r.findall(proc_parts)[0])
    return devmap
