'Get disks used within this pool'

def get_devs(self):

    devs = []
    for key in ('data', 'cache', 'spares', 'logs'):
        klass = getattr(self, key)
        if (klass is None):
            continue
        for vdev in klass:
            for dev in vdev:
                devs.append(dev)
    return devs
