Reproducible with scsi_debug:
sudo modprobe scsi_debug removable=1 ptype=5
Gives: P: /devices/pseudo_0/adapter0/host10/target10:0:0/10:0:0:0/block/sr0 N: sr0 E: DEVLINKS=/dev/cdrom /dev/disk/by-id/scsi-353333330000055f0 /dev/disk/by-id/wwn-0x53333330000055f0 /dev/disk/by-path/scsi-0:0:0:0 E: DEVNAME=/dev/sr0 E: DEVPATH=/devices/pseudo_0/adapter0/host10/target10:0:0/10:0:0:0/block/sr0
Reproducible with scsi_debug:
sudo modprobe scsi_debug removable=1 ptype=5
Gives: pseudo_ 0/adapter0/ host10/ target10: 0:0/10: 0:0:0/block/ sr0 by-id/scsi- 353333330000055 f0 /dev/disk/ by-id/wwn- 0x5333333000005 5f0 /dev/disk/ by-path/ scsi-0: 0:0:0 /devices/ pseudo_ 0/adapter0/ host10/ target10: 0:0/10: 0:0:0/block/ sr0
P: /devices/
N: sr0
E: DEVLINKS=/dev/cdrom /dev/disk/
E: DEVNAME=/dev/sr0
E: DEVPATH=