Implement list-devices and list-partitions.