• Patrick Mansfield's avatar
    dynamic device info flag entries · bb7b9e76
    Patrick Mansfield authored
    This patch allows scsi device flags like those in the current scsi_scan.c
    device_list to be added via the command line or via /proc/scsi/device_info.
    
    It also allows a default flag to be set via the command line.
    
    This should allow for the (eventual) removal of the current device_list.
    
    Example boot command line arguments:
    
    scsi_default_dev_flags=0x1 scsi_dev_flags="IBM:LN V1.2Rack:0x200"
    
    The above means that a SCSI device with vendor "IBM     ", model
    (product) "LN V1.2Rack     " will get a flag of 0x200 during scanning,
    meaning it should be treated like a SCSI-3 device for scanning. All
    other devices without an entry would get the default flag value of 1,
    so they would not be scanned past LUN 0 (the same behaviour as 
    max_scsi_luns = 1).
    
    I left the old device list and BLIST defines in scsi_scan.c.
    
    I could not get lilo to allow two spaces, so I could not use this
    with my device that has model "ST318203LC    !#". I didn't try grub.
    bb7b9e76
scsi.c 83.4 KB