Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/262/?format=api
{ "id": 262, "url": "http://patchwork.ozlabs.org/api/patches/262/?format=api", "web_url": "http://patchwork.ozlabs.org/project/cbe-oss-dev/patch/48CABE27.10301@am.sony.com/", "project": { "id": 1, "url": "http://patchwork.ozlabs.org/api/projects/1/?format=api", "name": "Cell Broadband Engine development", "link_name": "cbe-oss-dev", "list_id": "cbe-oss-dev.ozlabs.org", "list_email": "cbe-oss-dev@ozlabs.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<48CABE27.10301@am.sony.com>", "list_archive_url": null, "date": "2008-09-12T19:08:23", "name": "Fix test for loaded kernel", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "f905e04fb4ed872bb9e706263609591c93de1351", "submitter": { "id": 34, "url": "http://patchwork.ozlabs.org/api/people/34/?format=api", "name": "Geoff Levand", "email": "geoffrey.levand@am.sony.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/cbe-oss-dev/patch/48CABE27.10301@am.sony.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/262/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/262/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<cbe-oss-dev-bounces+patchwork=ozlabs.org@ozlabs.org>", "X-Original-To": [ "patchwork@ozlabs.org", "cbe-oss-dev@ozlabs.org" ], "Delivered-To": [ "patchwork@ozlabs.org", "cbe-oss-dev@ozlabs.org" ], "Received": [ "from ozlabs.org (localhost [127.0.0.1])\n\tby ozlabs.org (Postfix) with ESMTP id 33716DE1AC\n\tfor <patchwork@ozlabs.org>; Sat, 13 Sep 2008 05:08:52 +1000 (EST)", "from IE1EHSOBE004.bigfish.com (outbound-dub.frontbridge.com\n\t[213.199.154.16]) by ozlabs.org (Postfix) with ESMTP id 0ACB3DE025\n\tfor <cbe-oss-dev@ozlabs.org>; Sat, 13 Sep 2008 05:08:33 +1000 (EST)", "from mail118-dub-R.bigfish.com (10.5.252.3) by\n\tIE1EHSOBE004.bigfish.com (10.5.252.24) with Microsoft SMTP Server id\n\t8.1.291.1; Fri, 12 Sep 2008 19:08:29 +0000", "from mail118-dub (localhost.localdomain [127.0.0.1])\tby\n\tmail118-dub-R.bigfish.com (Postfix) with ESMTP id 717F0BF0170;\n\tFri, 12 Sep 2008 19:08:28 +0000 (UTC)", "by mail118-dub (MessageSwitch) id 1221246506982146_4996;\n\tFri, 12 Sep 2008 19:08:26 +0000 (UCT)", "from mail8.fw-sd.sony.com (mail8.fw-sd.sony.com [160.33.66.75])\tby\n\tmail118-dub.bigfish.com (Postfix) with ESMTP id CCDF0860071;\n\tFri, 12 Sep 2008 19:08:25 +0000 (UTC)", "from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com\n\t[43.134.1.211])\tby mail8.fw-sd.sony.com (8.14.2/8.14.2) with ESMTP id\n\tm8CJ8OK0025888;\tFri, 12 Sep 2008 19:08:24 GMT", "from USSDIXIM02.am.sony.com (ussdixim02.am.sony.com\n\t[43.130.140.34])\n\tby mail3.sjc.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id\n\tm8CJ8OqN025833; Fri, 12 Sep 2008 19:08:24 GMT", "from ussdixms03.am.sony.com ([43.130.140.23]) by\n\tUSSDIXIM02.am.sony.com with Microsoft SMTPSVC(5.0.2195.6713);\n\tFri, 12 Sep 2008 12:08:24 -0700", "from [192.168.1.10] ([43.135.148.226]) by ussdixms03.am.sony.com\n\twith Microsoft SMTPSVC(5.0.2195.6713); Fri, 12 Sep 2008 12:08:23 -0700" ], "X-BigFish": "VPS1(zzzz10d3izzz2fh6bh61h)", "X-Spam-TCS-SCL": "0:0", "Message-ID": "<48CABE27.10301@am.sony.com>", "Date": "Fri, 12 Sep 2008 12:08:23 -0700", "From": "Geoff Levand <geoffrey.levand@am.sony.com>", "User-Agent": "Thunderbird 2.0.0.16 (X11/20080723)", "MIME-Version": "1.0", "To": "Simon Horman <horms@verge.net.au>", "X-Enigmail-Version": "0.95.7", "X-OriginalArrivalTime": "12 Sep 2008 19:08:23.0663 (UTC)\n\tFILETIME=[ED9597F0:01C9150A]", "X-SEL-encryption-scan": "scanned", "Cc": "kexec@lists.infradead.org,\n\tCell Broadband Engine OSS Development <cbe-oss-dev@ozlabs.org>", "Subject": "[Cbe-oss-dev] [patch kexec] Fix test for loaded kernel", "X-BeenThere": "cbe-oss-dev@ozlabs.org", "X-Mailman-Version": "2.1.11", "Precedence": "list", "List-Id": "Discussion about Open Source Software for the Cell Broadband Engine\n\t<cbe-oss-dev.ozlabs.org>", "List-Unsubscribe": "<https://ozlabs.org/mailman/options/cbe-oss-dev>,\n\t<mailto:cbe-oss-dev-request@ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://ozlabs.org/pipermail/cbe-oss-dev>", "List-Post": "<mailto:cbe-oss-dev@ozlabs.org>", "List-Help": "<mailto:cbe-oss-dev-request@ozlabs.org?subject=help>", "List-Subscribe": "<https://ozlabs.org/mailman/listinfo/cbe-oss-dev>,\n\t<mailto:cbe-oss-dev-request@ozlabs.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "cbe-oss-dev-bounces+patchwork=ozlabs.org@ozlabs.org", "Errors-To": "cbe-oss-dev-bounces+patchwork=ozlabs.org@ozlabs.org" }, "content": "Fix these reboot errors with NFS mounted root filesystems:\n\n nfs: server 192.168.1.1 not responding, still trying\n\nThe main kexec code that uses kexec_loaded() expects a non-zero \nreturn to mean a kexec kernel has been loaded for execution.\nHere is the current check:\n\n\tif ((result == 0) && (do_shutdown || do_exec) && !kexec_loaded())\n\t\tdie\n\nIn cases where the currently running kernel does not have kexec enabled,\nor in cases where the distro init scripts (YDL, maybe others) have unmounted\nthe sys filesystem prior to running kexec, the open of\n\"/sys/kernel/kexec_loaded\" will fail. This result should be returned as\n(0), meaning NOT LOADED. The current kexec_loaded() code returns (-1),\nmeaning LOADED.\n\nWith the current code, kexec will continue on. The next steps are to\nshutdown the network, then call sys_kexec. The shutdown of the network\nwill succeed, but the call to sys_kexec will fail. In this case, control\nwill pass back to the init scripts, but the network will be down.\nSystems with NFS mounted root filesystem cannot work in this state.\n\nSigned-off-by: Geoff Levand <geoffrey.levand@am.sony.com>", "diff": "--- a/kexec/kexec.c\n+++ b/kexec/kexec.c\n@@ -805,7 +805,7 @@ static int kexec_loaded(void)\n \n \tfp = fopen(\"/sys/kernel/kexec_loaded\", \"r\");\n \tif (fp == NULL)\n-\t\treturn -1;\n+\t\treturn 0;\n \tfscanf(fp, \"%d\", &ret);\n \tfclose(fp);\n \treturn ret;\n", "prefixes": [] }