dm ioctl: filter the returned values according to name or uuid prefix