From owner-freebsd-stable@FreeBSD.ORG Fri Sep 10 16:28:25 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0972106566B for ; Fri, 10 Sep 2010 16:28:25 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 617328FC1A for ; Fri, 10 Sep 2010 16:28:25 +0000 (UTC) Received: by qyk31 with SMTP id 31so7953818qyk.13 for ; Fri, 10 Sep 2010 09:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=+8VO+RMVRdujJMsQZl03b0XIcsqhPowIfaWKDztaXPo=; b=DVHEcf6+kw1a+6C4/jrWzOtB2P6LZjbRB0H8DNdnpWvm0ZeSfHre8zKbKIFkcRbfCt FQiBaXRRrz8+RoMhUCBBAlK9iuhrbig+NIY9ZrIkM+lUnwzFibl5zBOQnn8YYbFHZG2L 3tDq9L0PvrbtLps4x+AHy3HEDzYdOT6468LS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=iSSZN9AB8hM0t2GoJTRpG6eTE2nFPZpukkfPZ/XSzclu+mTSiAQ0hCyQOl35CPA5rD xE28rRTts5qKyOuKE/Qm3YSJ5gpgdF+LDaZt5RhArH/6BnfajkAEvugi586Ilf7g47sn EimYHq39iQL6UJdzp3UGrKxIzNgoF0+EnAtH4= MIME-Version: 1.0 Received: by 10.229.185.7 with SMTP id cm7mr695484qcb.7.1284134757704; Fri, 10 Sep 2010 09:05:57 -0700 (PDT) Received: by 10.229.19.206 with HTTP; Fri, 10 Sep 2010 09:05:57 -0700 (PDT) In-Reply-To: <4C8A336D.9080302@eng.auth.gr> References: <4C8A336D.9080302@eng.auth.gr> Date: Fri, 10 Sep 2010 20:05:57 +0400 Message-ID: From: pluknet To: George Mamalakis Content-Type: multipart/mixed; boundary=0016e6509e4213a492048fe9eca1 Cc: stable@freebsd.org Subject: Re: AoE driver for FBSD8 or later? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2010 16:28:25 -0000 --0016e6509e4213a492048fe9eca1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 10 September 2010 17:32, George Mamalakis wrote: > =A0Hi everybody, > > we have a coraid device with 15x1GB disks on it, and would like to use it > with fbsd8 (zfs, etc). The http://support.coraid.com/support/freebsd/ is > really outdated, and the port that creates the kernel module does not > compile on FBSD8 (obviously!). Is there any effort on migrating the drive= r > onto fbsd8 or should I plug the coraid on a linux system and use it from > there? > This change below looks obvious to me. Not sure if this is enough to make it work though. There are also might be issues with those interfaces which announce itself as IFT_ETHER, but have NULL if_input. # cat files/patch-dev-aoe-aoenet.c --- aoenet.c.orig 2006-05-25 16:10:11.000000000 +0000 +++ aoenet.c 2010-09-10 15:03:01.000000000 +0000 @@ -77,8 +77,11 @@ #define NECODES (sizeof(aoe_errlist) / sizeof(char *) - 1) #if (__FreeBSD_version < 600000) #define IFPADDR(ifp) (((struct arpcom *) (ifp))->ac_enaddr) +#elif (__FreeBSD_version < 700000) +#define IFPADDR(ifp) IFP2ENADDR(ifp) #else -#define IFPADDR(ifp) IFP2ENADDR(ifp) +#include +#define IFPADDR(ifp) IF_LLADDR(ifp) #endif #define IFLISTSZ 1024 @@ -223,7 +226,11 @@ m1->m_ext.ref_cnt =3D NULL; MEXTADD(m1, f->f_data, len, nilfn, +#if (__FreeBSD_version < 800000) NULL, 0, EXT_NET_DRV); +#else + f->f_data, NULL, 0, EXT_NET_DRV); +#endif m1->m_len =3D len; m1->m_next =3D NULL; } --=20 wbr, pluknet --0016e6509e4213a492048fe9eca1 Content-Type: application/octet-stream; name="patch-dev-aoe-aoenet.c" Content-Disposition: attachment; filename="patch-dev-aoe-aoenet.c" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gdx8kek00 LS0tIGFvZW5ldC5jLm9yaWcJMjAwNi0wNS0yNSAxNjoxMDoxMS4wMDAwMDAwMDAgKzAwMDAKKysr IGFvZW5ldC5jCTIwMTAtMDktMTAgMTU6MDM6MDEuMDAwMDAwMDAwICswMDAwCkBAIC03Nyw4ICs3 NywxMSBAQAogI2RlZmluZSBORUNPREVTIChzaXplb2YoYW9lX2Vycmxpc3QpIC8gIHNpemVvZihj aGFyICopIC0gMSkKICNpZiAoX19GcmVlQlNEX3ZlcnNpb24gPCA2MDAwMDApCiAjZGVmaW5lIElG UEFERFIoaWZwKSAoKChzdHJ1Y3QgYXJwY29tICopIChpZnApKS0+YWNfZW5hZGRyKQorI2VsaWYg KF9fRnJlZUJTRF92ZXJzaW9uIDwgNzAwMDAwKQorI2RlZmluZSBJRlBBRERSKGlmcCkgSUZQMkVO QUREUihpZnApCiAjZWxzZQotI2RlZmluZSBJRlBBRERSKGlmcCkgSUZQMkVOQUREUihpZnApIAor I2luY2x1ZGUgPG5ldC9pZl9kbC5oPgorI2RlZmluZSBJRlBBRERSKGlmcCkgSUZfTExBRERSKGlm cCkKICNlbmRpZgogI2RlZmluZSBJRkxJU1RTWiAxMDI0CiAKQEAgLTIyMyw3ICsyMjYsMTEgQEAK IAogCQltMS0+bV9leHQucmVmX2NudCA9IE5VTEw7CiAJCU1FWFRBREQobTEsIGYtPmZfZGF0YSwg bGVuLCBuaWxmbiwgCisjaWYgKF9fRnJlZUJTRF92ZXJzaW9uIDwgODAwMDAwKQogCQkJTlVMTCwg MCwgRVhUX05FVF9EUlYpOworI2Vsc2UKKwkJCWYtPmZfZGF0YSwgTlVMTCwgMCwgRVhUX05FVF9E UlYpOworI2VuZGlmCiAJCW0xLT5tX2xlbiA9IGxlbjsKIAkJbTEtPm1fbmV4dCA9IE5VTEw7CiAg ICAgICAgIH0K --0016e6509e4213a492048fe9eca1--