Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2008 23:55:48 GMT
From:      SANAGI Terumasa <etherforet@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/122898: [patch] net/iscsi-target
Message-ID:  <200804182355.m3INtmac025742@www.freebsd.org>
Resent-Message-ID: <200804190000.m3J003Za090554@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804182355.m3INtmac025742>