Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262763AbUCJS0T (ORCPT ); Wed, 10 Mar 2004 13:26:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262757AbUCJSXv (ORCPT ); Wed, 10 Mar 2004 13:23:51 -0500 Received: from pop.gmx.de ([213.165.64.20]:57482 "HELO mail.gmx.net") by vger.kernel.org with SMTP id S262748AbUCJSXO (ORCPT ); Wed, 10 Mar 2004 13:23:14 -0500 Date: Wed, 10 Mar 2004 19:23:12 +0100 (MET) From: =?ISO-8859-1?Q?=22Fabian_LoneStar_Fr=E9d=E9rick=22?= To: "Randy.Dunlap" Cc: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="========GMXBoundary165211078942992" Subject: Re: [PATCH 2.6.4rc2mm1] nfsroot parser X-Priority: 3 (Normal) X-Authenticated: #9223398 Message-ID: <16521.1078942992@www11.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9792 Lines: 147 This is a MIME encapsulated multipart message - please use a MIME-compliant e-mail program to open it. Dies ist eine mehrteilige Nachricht im MIME-Format - bitte verwenden Sie zum Lesen ein MIME-konformes Mailprogramm. --========GMXBoundary165211078942992 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Randy, Here's nfs standard parser with some corrections.Is it ok for you ? Regards, Fabian -- +++ NEU bei GMX und erstmalig in Deutschland: T?V-gepr?fter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz --========GMXBoundary165211078942992 Content-Type: application/octet-stream; name="nfs_parse.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="nfs_parse.diff" ZGlmZiAtTmF1ciBvcmlnL2ZzL25mcy9uZnNyb290LmMgZWRpdGVkL2ZzL25mcy9uZnNyb290LmMK LS0tIG9yaWcvZnM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QgdG9r ZW5zID0geworCXtPcHRfcG9ydCwgInBvcnQ9JXUifSwKKwl7T3B0X3JzaXplLCAicnNpemU9JXUi fSwKKwl7T3B0X3dzaXplLCAid3NpemU9JXUifSwKKwl7T3B0X3RpbWVvLCAidGltZW89JXUifSwK Kwl7T3B0X3JldHJhbnMsICJyZXRyYW5zPSV1In0sCisJe09wdF9hY3JlZ21pbiwgImFjcmVnbWlu PSV1In0sCisJe09wdF9hY3JlZ21heCwgImFjcmVnbWF4PSV1In0sCisJe09wdF9hY2Rpcm1pbiwg ImFjZGlybWluPSV1In0sCisJe09wdF9hY2Rpcm1heCwgImFjZGlybWF4PSV1In0sCisJe09wdF9z b2Z0LCAic29mdCJ9LAorCXtPcHRfaGFyZCwgImhhcmQifSwKKwl7T3B0X2ludHIsICJpbnRyIn0s CisJe09wdF9ub2ludHIsICJub2ludHIifSwKKwl7T3B0X3Bvc2l4LCAicG9zaXgifSwKKwl7T3B0 X25vcG9zaXgsICJub3Bvc2l4In0sCisJe09wdF9jdG8sICJjdG8ifSwKKwl7T3B0X25vY3RvLCAi bm9jdG8ifSwKKwl7T3B0X2FjLCAiYWMifSwKKwl7T3B0X25vYWMsICJub2FjIn0sCisJe09wdF9s b2NrLCAibG9jayJ9LAorCXtPcHRfbm9sb2NrLCAibm9sb2NrIn0sCisJe09wdF92MiwgInYyIn0s CisJe09wdF92MywgInYzIn0sCisJe09wdF91ZHAsICJ1ZHAifSwKKwl7T3B0X3RjcCwgInRjcCJ9 LAorCXtPcHRfYnJva2VuX3N1aWQsICJicm9rZW5fc3VpZCJ9LAorCXtPcHRfZXJyLCBOVUxMfQor CQogfTsKIAotCiAvKgogICogIFBhcnNlIG9wdGlvbiBzdHJpbmcuCiAgKi8KLXN0YXRpYyB2b2lk IF9faW5pdCByb290X25mc19wYXJzZShjaGFyICpuYW1lLCBjaGFyICpidWYpCisKK3N0YXRpYyBp bnQgX19pbml0IHJvb3RfbmZzX3BhcnNlKGNoYXIgKm5hbWUsIGNo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Y9IH5ORlNfTU9VTlRfTk9OTE07CisJCQkJYnJl YWs7CisJCQljYXNlIE9wdF9ub2xvY2s6CisJCQkJbmZzX2RhdGEuZmxhZ3MgfD0gTkZTX01PVU5U X05PTkxNOworCQkJCWJyZWFrOworCQkJY2FzZSBPcHRfdjI6CisJCQkJbmZzX2RhdGEuZmxhZ3Mg Jj0gfk5GU19NT1VOVF9WRVIzOworCQkJCWJyZWFrOworCQkJY2FzZSBPcHRfdjM6CisJCQkJbmZz X2RhdGEuZmxhZ3MgfD0gTkZTX01PVU5UX1ZFUjM7CisJCQkJYnJlYWs7CisJCQljYXNlIE9wdF91 ZHA6CisJCQkJbmZzX2RhdGEuZmxhZ3MgJj0gfk5GU19NT1VOVF9UQ1A7CisJCQkJYnJlYWs7CisJ CQljYXNlIE9wdF90Y3A6CisJCQkJbmZzX2RhdGEuZmxhZ3MgfD0gTkZTX01PVU5UX1RDUDsKKwkJ CQlicmVhazsKKwkJCWNhc2UgT3B0X2Jyb2tlbl9zdWlkOgorCQkJCW5mc19kYXRhLmZsYWdzIHw9 IE5GU19NT1VOVF9CUk9LRU5fU1VJRDsKKwkJCQlicmVhazsKKwkJCWRlZmF1bHQgOiAKKwkJCQly ZXR1cm4gMDsKIAkJfQogCX0KLQlpZiAobmFtZVswXSAmJiBzdHJjbXAobmFtZSwgImRlZmF1bHQi KSkKLQkJc3RybGNweShidWYsIG5hbWUsIE5GU19NQVhQQVRITEVOKTsKKwlyZXR1cm4gMTsKIH0K IAotCiAvKgogICogIFByZXBhcmUgdGhlIE5GUyBkYXRhIHN0cnVjdHVyZSBhbmQgcGFyc2UgYWxs IG9wdGlvbnMuCiAgKi8K --========GMXBoundary165211078942992-- - 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/