Question: 2.4.X and BLIST_SINGLELUN
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
Quoted 8 lines
I want to add a
BLIST_SINGLELUNblacklist entry toscsi_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 needBLIST_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