{"id":809178,"url":"http://patchwork.ozlabs.org/api/1.2/patches/809178/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1504397939-12847-1-git-send-email-alison@peloton-tech.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1504397939-12847-1-git-send-email-alison@peloton-tech.com>","list_archive_url":null,"date":"2017-09-03T00:18:57","name":"[U-Boot,1/3] GPT: create block device for sandbox testing","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"29e9998cac3430f4e2da84da66be7681d41d369b","submitter":{"id":69170,"url":"http://patchwork.ozlabs.org/api/1.2/people/69170/?format=json","name":"Alison Chaiken","email":"alison@peloton-tech.com"},"delegate":{"id":3184,"url":"http://patchwork.ozlabs.org/api/1.2/users/3184/?format=json","username":"sjg","first_name":"Simon","last_name":"Glass","email":"sjg@chromium.org"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1504397939-12847-1-git-send-email-alison@peloton-tech.com/mbox/","series":[{"id":1186,"url":"http://patchwork.ozlabs.org/api/1.2/series/1186/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=1186","date":"2017-09-03T00:18:57","name":"[U-Boot,1/3] GPT: create block device for sandbox testing","version":1,"mbox":"http://patchwork.ozlabs.org/series/1186/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809178/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809178/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlDBF53BLz9sRW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 10:19:32 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 72D68C21E30; Sun,  3 Sep 2017 00:19:17 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 5A215C21D19;\n\tSun,  3 Sep 2017 00:19:15 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid BAF39C21C5C; Sun,  3 Sep 2017 00:19:13 +0000 (UTC)","from alison-debian.peloton-tech.com (unknown [12.1.72.210])\n\tby lists.denx.de (Postfix) with SMTP id 95B4BC21C59\n\tfor <u-boot@lists.denx.de>; Sun,  3 Sep 2017 00:19:12 +0000 (UTC)","(qmail 12892 invoked by uid 1026); 3 Sep 2017 00:19:10 -0000"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"*","X-Spam-Status":"No, score=1.3 required=5.0 tests=RDNS_NONE autolearn=no\n\tautolearn_force=no version=3.4.0","From":"alison@peloton-tech.com","To":"u-boot@lists.denx.de","Date":"Sat,  2 Sep 2017 17:18:57 -0700","Message-Id":"<1504397939-12847-1-git-send-email-alison@peloton-tech.com>","X-Mailer":"git-send-email 2.1.4","Cc":"alison@she-devel.com, trini@konsulko.com, alison@peloton-tech.com","Subject":"[U-Boot] [PATCH 1/3] GPT: create block device for sandbox testing","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"From: Alison Chaiken <alison@peloton-tech.com>\n\nProvide a shell script that creates a small block device for the\npurpose of testing the cmd/gpt.c functions in the u-boot sandbox.\nRunning the tests removes the device file.\n\nSigned-off-by: Alison Chaiken <alison@peloton-tech.com>\n---\n test/gpt/make-test-disk.sh | 8 ++++++++\n 1 file changed, 8 insertions(+)\n create mode 100755 test/gpt/make-test-disk.sh","diff":"diff --git a/test/gpt/make-test-disk.sh b/test/gpt/make-test-disk.sh\nnew file mode 100755\nindex 0000000..022acba\n--- /dev/null\n+++ b/test/gpt/make-test-disk.sh\n@@ -0,0 +1,8 @@\n+#!/bin/bash\n+\n+/usr/bin/truncate -s 265K disk.raw\n+echo -e \"label: gpt\\n,64K,U\\n,,L\" | /sbin/sgdisk ./disk.raw\n+/sbin/sgdisk --new=1:34:161 ./disk.raw\n+/sbin/sgdisk --new=2:162:496 ./disk.raw\n+/sbin/sgdisk -U 375a56f7-d6c9-4e81-b5f0-09d41ca89efe ./disk.raw\n+/sbin/gdisk -l ./disk.raw\n","prefixes":["U-Boot","1/3"]}