Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262445AbVEMRXJ (ORCPT ); Fri, 13 May 2005 13:23:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262441AbVEMRXJ (ORCPT ); Fri, 13 May 2005 13:23:09 -0400 Received: from mail.timesys.com ([65.117.135.102]:34325 "EHLO exchange.timesys.com") by vger.kernel.org with ESMTP id S262445AbVEMRT6 (ORCPT ); Fri, 13 May 2005 13:19:58 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 X-Mailer: Evolution 2.0.4-3mdk Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-zMi6LM/foYZulUBaAEOS" Content-Class: urn:content-classes:message Date: Fri, 13 May 2005 13:19:55 -0400 Subject: [PATCH 2.6.11.7] ATA Over Ethernet Root Message-ID: <1116004796.9050.83.camel@jmcmullan.timesys> Date: Fri, 13 May 2005 13:14:04 -0400 MIME-Version: 1.0 Message-ID: <1116004796.9050.83.camel@jmcmullan.timesys> X-Mailer: Evolution 2.0.4-3mdk X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: [PATCH 2.6.11.7] ATA Over Ethernet Root thread-index: AcVX3yofkwIVGIjFQVeZVY1Ha51mxg== From: "McMullan, Jason" To: , "Linux Kernel" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7018 Lines: 122 --=-zMi6LM/foYZulUBaAEOS Content-Type: multipart/mixed; boundary="=-jSDE+74k4Sof97xCqbgz" --=-jSDE+74k4Sof97xCqbgz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable This patch allows you to use ATA Over Ethernet as your root device, with 'root=3D/dev/etherd/eX.Y/disc' Limited testing, just for ya'lls review. --=20 Jason McMullan TimeSys Corporation --=-jSDE+74k4Sof97xCqbgz Content-Disposition: attachment; filename=aoe-root.patch Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=aoe-root.patch; charset=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VSX0VUSF9ST09UX1NIRUxGLENPTkZJR19BVEFfT1ZFUl9FVEhfUk9PVF9TTE9U KTsNCisjZW5kaWYNCiAJZGlzY292ZXJfdGltZXIoVElOSVQpOw0KIAlyZXR1cm4gMDsNCiANCkBA IC0xMDIsNiArMTUyLDcgQEANCiAJYW9lY2hyX2V4aXQoKTsNCiAgY2hyX2ZhaWw6DQogCWFvZWRl dl9leGl0KCk7DQorCWRldmZzX3JlbW92ZSgiZXRoZXJkIik7DQogCQ0KIAlwcmludGsoS0VSTl9J TkZPICJhb2U6IGFvZV9pbml0OiBpbml0aWFsaXNhdGlvbiBmYWlsdXJlLlxuIik7DQogCXJldHVy biByZXQ7DQo= --=-jSDE+74k4Sof97xCqbgz-- --=-zMi6LM/foYZulUBaAEOS Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBChOG78/0vJ5szK6kRAp2rAKCikLAQdAJsyhMyYrj3EyLTfi6H3gCffv2D J28sNrFtNTIXigJUeFkf4/s= =lMet -----END PGP SIGNATURE----- --=-zMi6LM/foYZulUBaAEOS-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/