Add a patch so that our kernel may attach to the iscsi target via mpath(4).
Note: mpath(4) is not compiled in by default. OK sthen@, ajacoutot@
This commit is contained in:
parent
56fe913c3c
commit
1c77fc7044
@ -1,9 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2012/02/21 22:41:30 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2012/03/23 13:39:28 claudio Exp $
|
||||
|
||||
COMMENT= iSCSI (RFC 3720) target from NetBSD
|
||||
|
||||
DISTNAME= netbsd-iscsi-20111006
|
||||
PKGNAME= ${DISTNAME:S/-iscsi/-iscsi-target/}
|
||||
REVISION= 0
|
||||
|
||||
CATEGORIES= net sysutils
|
||||
|
||||
|
12
net/netbsd-iscsi-target/patches/patch-src_lib_disk_c
Normal file
12
net/netbsd-iscsi-target/patches/patch-src_lib_disk_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_lib_disk_c,v 1.1 2012/03/23 13:39:28 claudio Exp $
|
||||
--- src/lib/disk.c.orig Tue Mar 16 15:27:17 2010
|
||||
+++ src/lib/disk.c Tue Mar 20 08:03:58 2012
|
||||
@@ -1057,7 +1057,7 @@ device_vpd(iscsi_target_t *tgt, uint8_t *data, uint8_t
|
||||
cp[0] = (INQUIRY_DEVICE_ISCSI_PROTOCOL << 4) |
|
||||
INQUIRY_DEVICE_CODESET_UTF8;
|
||||
cp[1] = (INQUIRY_DEVICE_PIV << 7) |
|
||||
- (INQUIRY_DEVICE_ASSOCIATION_TARGET_DEVICE << 4) |
|
||||
+ (INQUIRY_DEVICE_ASSOCIATION_LOGICAL_UNIT << 4) |
|
||||
INQUIRY_IDENTIFIER_TYPE_T10;
|
||||
strpadcpy(&cp[4], 8, ISCSI_VENDOR, strlen(ISCSI_VENDOR), ' ');
|
||||
len = 8;
|
Loading…
Reference in New Issue
Block a user