ports/122898: [patch] net/iscsi-target

SANAGI Terumasa etherforet at gmail.com
Sat Apr 19 00:00:03 UTC 2008


>Number:         122898
>Category:       ports
>Synopsis:       [patch] net/iscsi-target
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 19 00:00:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     SANAGI Terumasa
>Release:        7.0-RELEASE( ppc | sparc64 )
>Organization:
none
>Environment:
FreeBSD pbg415.example.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Mon Apr 14 06:24:08 JST 2008     root at b25.eauforet.org:/usr/obj/powerpc/usr/src70R/sys/GENERIC  powerpc

>Description:
iscontrol (i386) is connect successful for net/iscsi-target (ppc | sparc64).
 but, continuous generate character device(s) da0, da1, da2, ... da(nnn), pass0, pass1, pass2,...pass(nnn).


>How-To-Repeat:
standard install and configuration net/iscsi-target on ppc and sparc64, when connect iscontrol(i386).

>Fix:
patch to netbsd-iscsi-20080207/include/iscsiutil.h

# cat iscsiutil.h_p0
*** iscsiutil.h Sat Apr 19 06:10:27 2008
--- iscsiutil.h_enh     Sat Apr 19 06:09:23 2008
***************
*** 77,92 ****
--- 77,96 ----
  #define ISCSI_HTONLL6(x) (uint64_t) \
        ( ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x0000ff0000000000uLL) >> 40))     \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x000000ff00000000uLL) >> 24))     \
+       | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0xffffffffffff0000uLL) >> 16))     \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x00000000ff000000uLL) >> 8))      \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x0000000000ff0000uLL) << 8))      \
+       | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x0000ffffffffffffuLL) << 16))     \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x000000000000ff00uLL) << 24))     \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x00000000000000ffuLL) << 40)))

  #define ISCSI_NTOHLL6(x) (uint64_t) \
        ( ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x0000ff0000000000uLL) >> 40))     \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x000000ff00000000uLL) >> 24))     \
+       | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0xffffffffffff0000uLL) >> 16))     \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x00000000ff000000uLL) >> 8))      \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x0000000000ff0000uLL) << 8))      \
+       | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x0000ffffffffffffuLL) << 16))     \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x000000000000ff00uLL) << 24))     \
        | ((uint64_t)( ((uint64_t)(x) & (uint64_t)0x00000000000000ffuLL) << 40)))


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list