disk/part: introduce get_device_and_partition