Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2228768/?format=api
{ "id": 2228768, "url": "http://patchwork.ozlabs.org/api/patches/2228768/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/05ace38b54ea49f462bcd6274c4a2528192e6949.1777281778.git.asj@kernel.org/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api", "name": "Linux ext4 filesystem development", "link_name": "linux-ext4", "list_id": "linux-ext4.vger.kernel.org", "list_email": "linux-ext4@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<05ace38b54ea49f462bcd6274c4a2528192e6949.1777281778.git.asj@kernel.org>", "list_archive_url": null, "date": "2026-04-27T10:19:33", "name": "[v3,1/9] fstests: add _loop_image_create_clone() helper", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "31da1fca1024f1c793779d5a3a003e80e59baddb", "submitter": { "id": 92722, "url": "http://patchwork.ozlabs.org/api/people/92722/?format=api", "name": "Anand Jain", "email": "asj@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/05ace38b54ea49f462bcd6274c4a2528192e6949.1777281778.git.asj@kernel.org/mbox/", "series": [ { "id": 501620, "url": "http://patchwork.ozlabs.org/api/series/501620/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501620", "date": "2026-04-27T10:19:32", "name": "fstests: add test coverage for cloned filesystem ids", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/501620/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228768/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228768/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=1lOr=C2=vger.kernel.org=linux-ext4+bounces-16108-patchwork-incoming=ozlabs.org@ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-ext4@vger.kernel.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "patchwork-incoming@ozlabs.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=KqSFxQI0;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=1lor=c2=vger.kernel.org=linux-ext4+bounces-16108-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.234.253.10 arc.chain=subspace.kernel.org", "gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org", "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=KqSFxQI0;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16108-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"KqSFxQI0\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g40833mWXz1yJX\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 20:25:39 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g40833GtGz4wG9\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 20:25:39 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g40833C5Sz4wKQ; Mon, 27 Apr 2026 20:25:39 +1000 (AEST)", "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g40800s93z4wG9\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 27 Apr 2026 20:25:36 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 5F11C3034E2B\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 27 Apr 2026 10:20:01 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 4BE4330DEA5;\n\tMon, 27 Apr 2026 10:19:58 +0000 (UTC)", "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id E92ED305E3B;\n\tMon, 27 Apr 2026 10:19:57 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 059DAC19425;\n\tMon, 27 Apr 2026 10:19:55 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777285539; cv=pass;\n\tb=A7uPC1E4Rwe1Ul2zBDsKD23tEaEC/szZuZXkqFmjFzPzeJRYsvSwfgsfAksduiaSur/EnR1+JxTNcz76N1u3CTBUSIdy3ABXmMc6/93Hl4wmjTzL4XgK2P1oua5DV+e5lXaf9YeHqf1XcVtZWWNluuVhHwftsB05R7FAsBZerMr6S4cR2P6vmF5kaDjrI0vmAzj0XetokB/+ov8sDGhCiIWYRPDnZqZkDTtlHeAynJ7ZnExc8Guylr4TUWt1KvgwCmsJ4hjg+FwwGh3ttXiLd8zsg/zssLP/mZ2oMtN4JhLSd5CyaZUHqRO73n/xQR3jETwIpTCKil3IX9bHUdXUyQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777285198; cv=none;\n b=PkpwVfIKnwkK98WGM/LEDfAFtfVUWqrRqF+YHGMpl6y5UhfSMb6at9KZ1bXBcYSyRE/adYLMcvjBd07uB3ZGZyXgyAUa5GlXTXT144xRZ5vARqRhE0Q5MVIxIEoYnCu3V2/2H7eJwrAX6qx4CZRPCvT59kZblDjTZox26Xr/wNQ=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777285539; c=relaxed/relaxed;\n\tbh=u53y8H/7QIkHDjBxTp6Iv9GZowlEylwhuriKQZgpwBg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=EG79ccvoYIm6AcM/w4SuI3oIymPoWPFRQEBCd8n+8aWLR2WTjrVwtV3TxZ1Pn0Wihv3ZtwhFlXXDdKyNuXKaJB2lX4eLEfsDZmmEyqdWfh0SQbZQuXDGu5yj9RR9KyIZPCZjE2YIyiV4H9KsHD7qzlfkdHDH22mMEisasL0lPcI3gRSGsSWXm0qD8+v1ReruNC1MzJyvnt3kAWOOGUsI2HKBAosnOpdqteswDbsOxXbcfaglPbPa4UPd8Tc+Je1LUhwREs2Y61a5YvBLnc6OgBJGIuLJYEFBUxoSCi/CVMtZ7ye0fZRTkFVBYKCKdxS60bQRJ++C94Wk6EEaqeNutg==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777285198; c=relaxed/simple;\n\tbh=TudFNrJ7xMN4t5aKEhti1ZuJdx6eszXGY1fn2YNMtMM=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=OG4us4KkfGfamvd1gkm6wU9GPzVWDoF7JPRgd+PyvX+2r+SBlzTMHxYcAHQdCXKohvekGFg4K7KzulBIgzHXRfJ/sFQH3k6v0xxblNcimO9ozQALUdmqqdjQnZs5ESqkdZT7h6zpRXXzEb1tPF0gFsJous0gxklQ1SqAKxwMGS4=" ], "ARC-Authentication-Results": [ "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=KqSFxQI0; dkim-atps=neutral;\n spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16108-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org", "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=KqSFxQI0; arc=none smtp.client-ip=10.30.226.201" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777285197;\n\tbh=TudFNrJ7xMN4t5aKEhti1ZuJdx6eszXGY1fn2YNMtMM=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=KqSFxQI0eBLR8WvX6VXiJegb7KGUSeV/bs6S+/KKrw+6ot6W4RwLP/0bCY4A6koBS\n\t qsTyNRDzBNblheGaWJFpYwyY+FSK6UNyEA0hTcmZWxQ8FrBPTV2PX7CDNlY3X04+qI\n\t ePRJVi9GerXung5D+MW+MpB5D6VaF0ojZlrcQxz3huN/Q7wskVWV3Eoh61zISnGVkb\n\t j3wfT0CKupQo/9nfVjJtMnuqfNpCs8HnRUrTq3a1+8HbiFoJKEp7atZ84kwZ/2pTQl\n\t XEg1YsuvqiLNBI9Pd1JGJF60qWAlPKZM0BXhyg2MSJDMgpUsRyLBwk6WCq+SBeHw8W\n\t roWj9tztd1bNQ==", "From": "Anand Jain <asj@kernel.org>", "To": "fstests@vger.kernel.org", "Cc": "linux-btrfs@vger.kernel.org,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-xfs@vger.kernel.org,\n\tlinux-f2fs@vger.kernel.org,\n\tamir73il@gmail.com,\n\tzlang@redhat.com,\n\thch@infradead.org", "Subject": "[PATCH v3 1/9] fstests: add _loop_image_create_clone() helper", "Date": "Mon, 27 Apr 2026 18:19:33 +0800", "Message-ID": "\n <05ace38b54ea49f462bcd6274c4a2528192e6949.1777281778.git.asj@kernel.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<cover.1777281778.git.asj@kernel.org>", "References": "<cover.1777281778.git.asj@kernel.org>", "Precedence": "bulk", "X-Mailing-List": "linux-ext4@vger.kernel.org", "List-Id": "<linux-ext4.vger.kernel.org>", "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org" }, "content": "Introduce _loop_image_create_clone() and _loop_image_destroy() to mkfs an\nimage file and clone it to another image file, and attach a loop device to\nthem. And its destroy part.\n\nSigned-off-by: Anand Jain <asj@kernel.org>\n---\n common/rc | 44 ++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 44 insertions(+)", "diff": "diff --git a/common/rc b/common/rc\nindex 9632b211b58f..0e7b7eb1d98f 100644\n--- a/common/rc\n+++ b/common/rc\n@@ -1503,6 +1503,50 @@ _scratch_resvblks()\n \tesac\n }\n \n+_loop_image_create_clone()\n+{\n+\tlocal -n _ret=$1\n+\tlocal pre_clone_tune_func=$2\n+\tlocal img_file=$TEST_DIR/${seq}.img\n+\tlocal img_file_clone=$TEST_DIR/${seq}_clone.img\n+\tlocal size=$(_small_fs_size_mb 128) # Smallest possible\n+\tlocal loop_devs\n+\n+\tsize=$((size * 1024 * 1024))\n+\t$XFS_IO_PROG -f -c \"truncate $size\" $img_file\n+\n+\tloop_devs=$(_create_loop_device $img_file)\n+\t_ret=($loop_devs)\n+\n+\tcase $FSTYP in\n+\txfs)\n+\t\t_mkfs_dev \"-s size=4096\" $img_file\n+\t\t;;\n+\tbtrfs)\n+\t\t_mkfs_dev $img_file\n+\t\t;;\n+\t*)\n+\t\t_mkfs_dev $img_file\n+\t\t;;\n+\tesac\n+\n+\t($pre_clone_tune_func)\n+\n+\tcp $img_file $img_file_clone\n+\n+\tloop_devs=\"$loop_devs $(_create_loop_device $img_file_clone)\"\n+\n+\t_ret=($loop_devs)\n+}\n+\n+_loop_image_destroy()\n+{\n+\tfor d in \"$@\"; do\n+\t\tlocal f=$(losetup --noheadings --output BACK-FILE $d)\n+\t\t_destroy_loop_device \"$d\"\n+\t\t[ -n \"$f\" ] && rm -f \"$f\"\n+\tdone\n+}\n \n # Repair scratch filesystem. Returns 0 if the FS is good to go (either no\n # errors found or errors were fixed) and nonzero otherwise; also spits out\n", "prefixes": [ "v3", "1/9" ] }