def status(stats=False, config=False, internals=False, superblock=False, alldevs=False):
    bdevs = []
    for _, links, _ in os.walk('/sys/block/'):
        for block in links:
            if 'bcache' in block:
                continue

            for spath, sdirs, _ in os.walk('/sys/block/{0}'.format(block), followlinks=False):
                if 'bcache' in sdirs:
                    bdevs.append(os.path.basename(spath))
    statii = {}
    for bcache in bdevs:
        statii[bcache] = device(bcache, stats, config, internals, superblock)

    cuuid = uuid()
    cdev = _bdev()
    if cdev:
        count = 0
        for dev in statii.keys():
            if dev != cdev:
                # it's a backing dev
                if statii[dev]['cache'] == cuuid:
                    count += 1
        statii[cdev]['attached_backing_devices'] = count

        if not alldevs:
            statii = statii[cdev]

    return statii
Parse a taskline (from a task file) and return a task.
dataset/ETHPy150Open saltstack/salt/salt/modules/bcache.py/status--crossover with--dataset/ETHPy150Open sjl/t/t.py/_task_from_taskline