Given a block partition (such as
/dev/sdf3), I'd like to look up an open LUKS device on that partition. E.g.:
$ some_command /dev/sdf3 /dev/mapper/luks-01234567-89ab-cdef-0123-456789abcdef
Or if no LUKS device is open on that partition, it would return nothing, or perhaps an error return value.
What command could be used to achieve the above?