wiki:jazz/08-12-16

Version 3 (modified by jazz, 16 years ago) (diff)

--

2008-12-16

  • Qlogic FC HBA 編譯問題追蹤
    • 2.6.26 編譯錯誤 Log 檔
    • 可以看到 2.6.26 版本的 scsi_cmnd.h 已經把原有 2.6.18 版本的 66 行 request_bufflen、 69 行 request_buffer 、 72 行 use_sg 的 structure data member 拿掉,並新增 struct scsi_data_buffer sdb 的定義。
      • include/scsi/scsi_cmnd.h

        old new  
        5778       int allowed;
        5879       int timeout_per_command;
        5980
        60        unsigned char cmd_len;
         81       unsigned short cmd_len;
        6182       enum dma_data_direction sc_data_direction;
        6283
        6384       /* These elements define the operation we are about to perform */
        64 #define MAX_COMMAND_SIZE       16
        65        unsigned char cmnd[MAX_COMMAND_SIZE];
        66        unsigned request_bufflen;       /* Actual request size */
         85       unsigned char *cmnd;
        6786
        6887       struct timer_list eh_timeout;   /* Used to time out the command. */
        69        void *request_buffer;           /* Actual requested buffer */
        7088
        7189       /* These elements define the operation we ultimately want to perform */
        72        unsigned short use_sg;  /* Number of pieces of scatter-gather */
        73        unsigned short sglist_len;      /* size of malloc'd scatter-gather list */
        74 
         90       struct scsi_data_buffer sdb;
        7591       unsigned underflow;     /* Return error if less than
        7692                                  this amount is transferred */
        7793

}}}

Virtualization

Attachments (2)

Download all attachments as: .zip