Skip to contentSkip to conversation

Question: 2.4.X and BLIST_SINGLELUN

DISCUSSION Tony Battersby 1 participant 2 messages Jun 22, 2004 – Jun 23, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

I want to add a BLIST_SINGLELUN blacklist entry to scsi_scan.c (kernel 2.4.X) for a device that happens to have distinct inquiry strings for LUNs 0 and 1. Ideally, I would like to add just one entry using the inquiry string for LUN 1. Will this work, or does the blacklist entry have to match the inquiry string for LUN 0? I can guarantee that all LUNs will be scanned, so I don't need BLIST_FORCELUN. I can't experiment with it because I don't have the device here with me.

Anthony J. Battersby
Cybernetics

#1 lore raw
Quoted 8 lines

I want to add a BLIST_SINGLELUN blacklist entry to scsi_scan.c (kernel 2.4.X) for a device that happens to have distinct inquiry strings for LUNs 0 and 1. Ideally, I would like to add just one entry using the inquiry string for LUN 1. Will this work, or does the blacklist entry have to match the inquiry string for LUN 0? I can guarantee that all LUNs will be scanned, so I don't need BLIST_FORCELUN. I can't experiment with it because I don't have the device here with me.

To answer my own question, I set up an experiment with a different device. As it turns out, it is necessary to have a BLIST_SINGLELUN blacklist entry for _both_ inquiry strings. With a single BLIST_SINGLELUN blacklist entry that matches only one LUN's inquiry string, the kernel will plug the command queue but not unplug it, so commands will be blocked forever.

Anthony J. Battersby
Cybernetics