block: Add a function to find block device descriptor