Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/809312/?format=api
{ "id": 809312, "url": "http://patchwork.ozlabs.org/api/patches/809312/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170903150031.18179-9-marek.behun@nic.cz/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "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": "<20170903150031.18179-9-marek.behun@nic.cz>", "list_archive_url": null, "date": "2017-09-03T15:00:30", "name": "[U-Boot,8/9] cmd: Add the 'btrsubvol' command to list BTRFS subvolumes", "commit_ref": "9d845509553e3c07414259ea97e4f59a3fe65904", "pull_url": null, "state": "accepted", "archived": false, "hash": "195bd80658604f496de054e6305eced2b582d22d", "submitter": { "id": 71605, "url": "http://patchwork.ozlabs.org/api/people/71605/?format=api", "name": "Marek Behún", "email": "marek.behun@nic.cz" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170903150031.18179-9-marek.behun@nic.cz/mbox/", "series": [ { "id": 1246, "url": "http://patchwork.ozlabs.org/api/series/1246/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1246", "date": "2017-09-03T15:00:25", "name": "Add single-device read-only BTRFS support", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1246/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/809312/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/809312/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>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tsecure) header.d=nic.cz header.i=@nic.cz header.b=\"YcyOktc8\"; \n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlbr93shGz9t2y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 4 Sep 2017 01:05:13 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 456D9C21EB1; Sun, 3 Sep 2017 15:04:52 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 1EB96C21F34;\n\tSun, 3 Sep 2017 15:01:42 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 66043C21D70; Sun, 3 Sep 2017 15:01:34 +0000 (UTC)", "from mail.nic.cz (mail.nic.cz [217.31.204.67])\n\tby lists.denx.de (Postfix) with ESMTPS id BCA16C21D79\n\tfor <u-boot@lists.denx.de>; Sun, 3 Sep 2017 15:01:33 +0000 (UTC)", "from dellmb.labs.office.nic.cz (unknown\n\t[IPv6:2001:1488:fffe:6:8982:ed8c:62b1:c0c8])\n\tby mail.nic.cz (Postfix) with ESMTP id 7569762404;\n\tSun, 3 Sep 2017 17:01:33 +0200 (CEST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default;\n\tt=1504450893; bh=PGDxor5uXc6lgjgc9bDM34btajGdsDHA8pi4Olewjec=;\n\th=From:To:Date;\n\tb=YcyOktc8uTJZ6hJVsXvKSD36LWCZeNE+m/TFk7qFiVbF87rbWtTbMk4j2r9IE3xaQ\n\tW9/e0wuSFa/QN/E2j+f0vOo44pxEC9pZr+N8TjxxP+QH2nuQhzdSYxq8rSUmY4/901\n\t1E5AD2FiLmmIDI9wqg0xxK7mYoi03fG1YAopgB1U=", "From": "=?utf-8?q?Marek_Beh=C3=BAn?= <marek.behun@nic.cz>", "To": "u-boot@lists.denx.de", "Date": "Sun, 3 Sep 2017 17:00:30 +0200", "Message-Id": "<20170903150031.18179-9-marek.behun@nic.cz>", "X-Mailer": "git-send-email 2.13.5", "In-Reply-To": "<20170903150031.18179-1-marek.behun@nic.cz>", "References": "<20170903150031.18179-1-marek.behun@nic.cz>", "X-Virus-Scanned": "clamav-milter 0.99.2 at mail", "X-Virus-Status": "Clean", "Cc": "Tomas Hlavacek <tomas.hlavacek@nic.cz>, Stefan Roese <sr@denx.de>,\n\t=?utf-8?q?Andreas_F=C3=A4rber?= <afaerber@suse.de>", "Subject": "[U-Boot] [PATCH 8/9] cmd: Add the 'btrsubvol' command to list BTRFS\n\tsubvolumes", "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": "Signed-off-by: Marek Behun <marek.behun@nic.cz>\n\n create mode 100644 cmd/btrfs.c", "diff": "diff --git a/cmd/Kconfig b/cmd/Kconfig\nindex d6d130edfa..77623052c4 100644\n--- a/cmd/Kconfig\n+++ b/cmd/Kconfig\n@@ -1311,6 +1311,16 @@ config CMD_CROS_EC\n endmenu\n \n menu \"Filesystem commands\"\n+config CMD_BTRFS\n+\tbool \"Enable the 'btrsubvol' command\"\n+\tselect FS_BTRFS\n+\thelp\n+\t This enables the 'btrsubvol' command to list subvolumes\n+\t of a BTRFS filesystem. There are no special commands for\n+\t listing BTRFS directories or loading BTRFS files - this\n+\t can be done by the generic 'fs' commands (see CMD_FS_GENERIC)\n+\t when BTRFS is enabled (see FS_BTRFS).\n+\n config CMD_CBFS\n \tbool \"Enable the 'cbfs' command\"\n \tdepends on FS_CBFS\ndiff --git a/cmd/Makefile b/cmd/Makefile\nindex 2a5b8ce825..2b0444d5b7 100644\n--- a/cmd/Makefile\n+++ b/cmd/Makefile\n@@ -27,6 +27,7 @@ obj-$(CONFIG_CMD_BOOTMENU) += bootmenu.o\n obj-$(CONFIG_CMD_BOOTSTAGE) += bootstage.o\n obj-$(CONFIG_CMD_BOOTZ) += bootz.o\n obj-$(CONFIG_CMD_BOOTI) += booti.o\n+obj-$(CONFIG_CMD_BTRFS) += btrfs.o\n obj-$(CONFIG_CMD_CACHE) += cache.o\n obj-$(CONFIG_CMD_CBFS) += cbfs.o\n obj-$(CONFIG_CMD_CLK) += clk.o\ndiff --git a/cmd/btrfs.c b/cmd/btrfs.c\nnew file mode 100644\nindex 0000000000..3f4f1b782b\n--- /dev/null\n+++ b/cmd/btrfs.c\n@@ -0,0 +1,28 @@\n+/*\n+ * 2017 by Marek Behun <marek.behun@nic.cz>\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+#include <common.h>\n+#include <command.h>\n+#include <btrfs.h>\n+#include <fs.h>\n+\n+int do_btrsubvol(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])\n+{\n+\tif (argc != 3)\n+\t\treturn CMD_RET_USAGE;\n+\n+\tif (fs_set_blk_dev(argv[1], argv[2], FS_TYPE_BTRFS))\n+\t\treturn 1;\n+\n+\tbtrfs_list_subvols();\n+\treturn 0;\n+}\n+\n+U_BOOT_CMD(btrsubvol, 3, 1, do_btrsubvol,\n+\t\"list subvolumes of a BTRFS filesystem\",\n+\t\"<interface> <dev[:part]>\\n\"\n+\t\" - List subvolumes of a BTRFS filesystem.\"\n+)\n", "prefixes": [ "U-Boot", "8/9" ] }