#6 Patch for scsi_transport_iscsi.c for use withnew kernel

open
nobody
None
5
2005-03-22
2005-03-22
Corin
No

The scsi_transport_iscsi.c file included with 4.0.2 has
target_class, target_attrs, target_setup and
host_attrs, host_class, host_setup uses that don't
match the kernel.

With 2.6.11 the entries should be target_attrs.attrs,
target_attrs.class, target_attrs.match and
host_attrs.attrs, host_attrs.class, host_attrs.match.

This allows the modules to compile with no issues in 2.6.11

This patch file was generated by following the main
steps in the README for linux-iscsi-4.0.2 and then
editing the scsi_transport_iscsi.c file, then running
diff -Naur against that.

So once all the main steps are completed, just apply
this patch and it will compile and load on a 2.6.11 kernel.

Discussion

  • Corin
    Corin
    2005-03-22

    Patch file for linux-iscsi-4.0.2/drivers/scsi_transport_iscsi.c

     
    Attachments
  • Marc Delisle
    Marc Delisle
    2005-07-14

    Logged In: YES
    user_id=210714

    Many thanks for this patch!
    Marc Delisle

     
  • glozada
    glozada
    2005-12-17

    Logged In: YES
    user_id=1405274

    This patch is not working for me. Kernel version is 2.6.11-
    1.1369.FC4. Once I apply the patch the compliation errors
    are now the following:

    /usr/src/iscsi/linux-iscsi-
    4.0.2/driver/scsi_transport_iscsi.c:281: error: âstruct
    transport_containerâ has no member named âattrsâ

    Has anyone else seen this? Any help would be appreciated.

    Regards,
    Glozada

     
  • glozada
    glozada
    2005-12-19

    Logged In: YES
    user_id=1405274

    That did it....the 4.0.2.1.test.tar version from the link
    below worked just fine for me......thanks Russ!

    Regards,
    Glozada

     
  • Ron
    Ron
    2006-02-15

    Logged In: YES
    user_id=1415449

    output after patch
    CC [M]
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/scsi_transport_iscsi.o
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/scsi_transport_iscsi.c:
    In function ‘iscsi_attach_transport’:
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/scsi_transport_iscsi.c:282:
    error: ‘struct transport_container’ has no member named ‘attrs’
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/scsi_transport_iscsi.c:283:
    error: ‘struct transport_container’ has no member named ‘class’
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/scsi_transport_iscsi.c:284:
    error: ‘struct transport_container’ has no member named ‘match’
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/scsi_transport_iscsi.c:311:
    error: ‘struct transport_container’ has no member named ‘attrs’
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/scsi_transport_iscsi.c:312:
    error: ‘struct transport_container’ has no member named ‘class’
    /usr/src/iscsi/linux-iscsi-4.0.2/driver/scsi_transport_iscsi.c:313:
    error: ‘struct transport_container’ has no member named ‘match’

     
  • glozada
    glozada
    2006-02-15

    Logged In: YES
    user_id=1405274

    reast,

    Try the 4.0.2.1.test.tar version. The output you posted is
    exactly the same as the errors I was getting after
    applying the original patch indicated in the thread. See
    the reply, in this thread, from Russ. That initiator works
    as is with the Fedora 4 CD kernel.

    regards,
    Godfrey

     
  • Logged In: NO

    I made a patch for 2.6.13 and 2.6.14 kernels I haven't
    tested it yet on 2.6.15 however. See:

    http://sourceforge.net/mailarchive/forum.php?
    thread_id=9098780&forum_id=1783

    Russ Lindsey