get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2229324/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2229324,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229324/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/5857d9f33de7f0ea8ddd12c36334c6463c0bfe0f.1777357321.git.asj@kernel.org/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<5857d9f33de7f0ea8ddd12c36334c6463c0bfe0f.1777357321.git.asj@kernel.org>",
    "date": "2026-04-28T06:42:54",
    "name": "[v4,4/9] fstests: verify fanotify isolation on cloned filesystems",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "edffdd794916cc3f6868a09c3335ad49ca947d3c",
    "submitter": {
        "id": 92722,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92722/?format=api",
        "name": "Anand Jain",
        "email": "asj@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/5857d9f33de7f0ea8ddd12c36334c6463c0bfe0f.1777357321.git.asj@kernel.org/mbox/",
    "series": [
        {
            "id": 501769,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501769/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501769",
            "date": "2026-04-28T06:42:52",
            "name": "fstests: add test coverage for cloned filesystem ids",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/501769/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229324/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229324/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=cgsW=C3=vger.kernel.org=linux-ext4+bounces-16139-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=XsXvJqBd;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=cgsw=c3=vger.kernel.org=linux-ext4+bounces-16139-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=XsXvJqBd;\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-16139-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=\"XsXvJqBd\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\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 4g4WDF6WP0z1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:46:05 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g4WDF5vB1z4wJW\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:46:05 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g4WDF5qKKz4wK5; Tue, 28 Apr 2026 16:46:05 +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 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g4WDB2Bz8z4wJW\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 16:46:02 +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 596EB3001871\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 06:43:23 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B2655357702;\n\tTue, 28 Apr 2026 06:43:21 +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 71ABC351C13;\n\tTue, 28 Apr 2026 06:43:21 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id ABF40C2BCAF;\n\tTue, 28 Apr 2026 06:43:19 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777358765; cv=pass;\n\tb=FWa9E8/I0CQa9UDB5ByVUp5A98sayCS+WlPSUr4xGM9zOlZ4VGKL52x/peHxXir9nGHLK8ijnnybejJqNhvyUPj0R7za5W9m4WU9oPZualJKNMlgeWZjb+Y3cQLJmDVZlFXmTmRSIm2t6VmWdujZb+NRiYZkdb1AU85QfyUw1OTHRluuKnuSQiQyZVJTnFC09/EF03Sivpc6yyXuRySAXEwdGHtiBK8YZfUCeL+eqEdA4r0Ugkjmhcf3uuNLJnVuRSV7w0bHJhzVcZ2X559mrfm5dH/5M+i1hJV8kc66GkYTu08ecsR268OAFxJW9h5f0L8eCqP/qXmK2aUvldV+Gg==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777358601; cv=none;\n b=h9iws6UHwX8/5ZFlDzNLHJr12IsZdqw0KHR0OKf4hM2mzbKOu2HwineoMA/G/AAH1sCM3csGytjqxmKfdCZBA+it7D4dzldU7BrllTUpRzAlnAxjJEZ1MKeJc0lREnvPqYFM6bOvvgMN/C2gU8tLXDA+uB09daL3zjtEf3JpgMg="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777358765; c=relaxed/relaxed;\n\tbh=NU+L1YcVd971nfKcFPE0GZz7phN4YvpmS3IW0COEb9o=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=JCcFnFm6SYFkrXYdY8ZCU1R1sWQGbWpm4HHzQmNA104Fhew+rKRpvyAEl5USnYGK+qg240qxTx08i1mNs2io90N2lfDnDPds6MhcNp0/dNlXS7hXUOR0tg7fp/TCGdp0AqUA8uQVv4PFrAcqj5gmiYO1zbviw7PbGtdxd6leDpD81q4zdpUwvRLqMeDwqbPgCgdXUGUo+kdfWmVUcZOOtQ1MbyKxY2NNXfgxMZBP+yfHVvJztVEle0VG/AKwJbXRCKtir3Z5HifgowKvdZ0iWRVz2fLA7hjsyxdNZNaxiKSwG9bCeO5LQJH8CfYTJuE8otSpxmOg3I1HEaw+YF3+0A==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777358601; c=relaxed/simple;\n\tbh=A39fwIamuiQCahpTIIYXpcht58U1LThjSWjT+3wKKzg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=BTSdVvLRp2wCfGDr1oJhu17O/eVPIThDdjXv515X5uzLvV98gSqnJlFtNrOQg+xYt9YB6PZ/UCiUgHPWQS+h+S6rHYIosTNc6g2pICx4H0TJzr7fqRz+qxCcgK7KTA+JAIhtRWjBGxp3/1VaUSLz7vNHGlbGBbf41s1GjnbQpkg="
        ],
        "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=XsXvJqBd; dkim-atps=neutral;\n spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16139-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=XsXvJqBd; 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=1777358601;\n\tbh=A39fwIamuiQCahpTIIYXpcht58U1LThjSWjT+3wKKzg=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=XsXvJqBd6c7UyD/VWDxkPzTPcW3rZ2IlncGPvaK96JP7X/1B289g29XCbw3grYT7y\n\t +0G89aAi53sboA7A9vfOJhB9N0BiKtvrqCOfXac2Ef2V4IkmjGIweaF4tPSCxlg0vB\n\t 5VcEQktAz2judFWCCA7CO1m8IGY1U3pE+tlUnw8luqgtvghbcdhVKBo/rARw5sNP2p\n\t ZrBik8yig3bJL6GpfW7t30DCXMHWf/QXZaM2cvqohWl4fw83Ydcy599eEgAHNj5Q1N\n\t 50svDWXoU0GrVod26HomuOrDWEcXOHLjqBovE5SXW3Z+YcAUOo2+qATfj9toAKoas5\n\t IFfhUXpowsuHg==",
        "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 v4 4/9] fstests: verify fanotify isolation on cloned\n filesystems",
        "Date": "Tue, 28 Apr 2026 14:42:54 +0800",
        "Message-ID": "\n <5857d9f33de7f0ea8ddd12c36334c6463c0bfe0f.1777357321.git.asj@kernel.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<cover.1777357320.git.asj@kernel.org>",
        "References": "<cover.1777357320.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": "Verify that fanotify events are correctly routed to the appropriate\nwatcher when cloned filesystems are mounted.\nHelps verify kernel's event notification distinguishes between devices\nsharing the same FSID/UUID.\n\nSigned-off-by: Anand Jain <asj@kernel.org>\n---\n common/config         |   1 +\n tests/generic/801     | 113 ++++++++++++++++++++++++++++++++++++++++++\n tests/generic/801.out |   7 +++\n 3 files changed, 121 insertions(+)\n create mode 100644 tests/generic/801\n create mode 100644 tests/generic/801.out",
    "diff": "diff --git a/common/config b/common/config\nindex 605a57947a40..1588bdcb1aa1 100644\n--- a/common/config\n+++ b/common/config\n@@ -243,6 +243,7 @@ export PARTED_PROG=\"$(type -P parted)\"\n export XFS_PROPERTY_PROG=\"$(type -P xfs_property)\"\n export FSCRYPTCTL_PROG=\"$(type -P fscryptctl)\"\n export INOTIFYWAIT_PROG=\"$(type -P inotifywait)\"\n+export FSNOTIFYWAIT_PROG=\"$(type -P fsnotifywait)\"\n \n # udev wait functions.\n #\ndiff --git a/tests/generic/801 b/tests/generic/801\nnew file mode 100644\nindex 000000000000..e1282f4e3d71\n--- /dev/null\n+++ b/tests/generic/801\n@@ -0,0 +1,113 @@\n+#! /bin/bash\n+# SPDX-License-Identifier: GPL-2.0\n+# Copyright (c) 2026 Anand Jain <asj@kernel.org>.  All Rights Reserved.\n+#\n+# FS QA Test 801\n+# Verify fanotify FID functionality on cloned filesystems by setting up\n+# watchers and making sure notifications are in the correct logs files.\n+\n+. ./common/preamble\n+\n+_begin_fstest auto quick mount clone\n+\n+_require_test\n+_require_block_device $TEST_DEV\n+_require_loop\n+_require_command \"$FSNOTIFYWAIT_PROG\" fsnotifywait\n+\n+_cleanup()\n+{\n+\tcd /\n+\t[[ -n $pid1 ]] && { kill -TERM \"$pid1\" 2> /dev/null; wait $pid1; }\n+\t[[ -n $pid2 ]] && { kill -TERM \"$pid2\" 2> /dev/null; wait $pid2; }\n+\tumount $mnt1 $mnt2 2>/dev/null\n+\t_loop_image_destroy \"${devs[@]}\" 2> /dev/null\n+\trm -r -f $tmp.*\n+}\n+\n+monitor_fanotify()\n+{\n+\tlocal mmnt=$1\n+\texec stdbuf -oL $FSNOTIFYWAIT_PROG -m -F -S -e create \"$mmnt\" 2>&1\n+}\n+\n+fsid_to_fid_parts()\n+{\n+\tlocal fsid=$1\n+\t# Pad to 16 hex chars (64-bit), then split into two 32-bit halves\n+\tlocal padded=$(printf '%016x' \"0x${fsid}\")\n+\tlocal hi=$(printf '%x' \"0x${padded:0:8}\")   # strips leading zeros\n+\tlocal lo=$(printf '%x' \"0x${padded:8:8}\")   # strips leading zeros\n+\techo \"${hi}.${lo}\"\n+}\n+\n+devs=()\n+_loop_image_create_clone devs\n+mkdir -p $TEST_DIR/$seq\n+mnt1=$TEST_DIR/$seq/mnt1\n+mnt2=$TEST_DIR/$seq/mnt2\n+mkdir -p $mnt1\n+mkdir -p $mnt2\n+\n+_mount $(_common_dev_mount_options) $(_clone_mount_option) ${devs[0]} $mnt1 || \\\n+\t\t\t\t\t\t_fail \"Failed to mount dev1\"\n+_mount $(_common_dev_mount_options) $(_clone_mount_option) ${devs[1]} $mnt2 || \\\n+\t\t\t\t\t\t_fail \"Failed to mount dev2\"\n+\n+fsid1=$(stat -f -c \"%i\" $mnt1)\n+fsid2=$(stat -f -c \"%i\" $mnt2)\n+\n+[[ \"$fsid1\" == \"$fsid2\" ]] && \\\n+\t_notrun \"Require clone filesystem with unique f_fsid\"\n+\n+log1=$tmp.fanotify1\n+log2=$tmp.fanotify2\n+\n+pid1=\"\"\n+pid2=\"\"\n+echo \"Setup FID fanotify watchers on both mnt1 and mnt2\"\n+( monitor_fanotify \"$mnt1\" > \"$log1\" ) &\n+pid1=$!\n+( monitor_fanotify \"$mnt2\" > \"$log2\" ) &\n+pid2=$!\n+sleep 2\n+\n+echo \"Trigger file creation on mnt1\"\n+touch $mnt1/file_on_mnt1\n+sync\n+sleep 1\n+\n+echo \"Trigger file creation on mnt2\"\n+touch $mnt2/file_on_mnt2\n+sync\n+sleep 1\n+\n+echo \"Verify fsid in the fanotify\"\n+kill $pid1 $pid2\n+wait $pid1 $pid2 2>/dev/null\n+pid1=\"\"\n+pid2=\"\"\n+\n+e_fsid1=$(fsid_to_fid_parts \"$fsid1\")\n+e_fsid2=$(fsid_to_fid_parts \"$fsid2\")\n+\n+echo $fsid1 $e_fsid1 $fsid2 $e_fsid2 >> $seqres.full\n+cat $log1 >> $seqres.full\n+cat $log2 >> $seqres.full\n+\n+if grep -qF \"$e_fsid1\" \"$log1\" && ! grep -qF \"$e_fsid2\" \"$log1\"; then\n+\techo \"SUCCESS: mnt1 events found\"\n+else\n+\t[ ! -s \"$log1\" ] && echo \"  - mnt1 received no events.\"\n+\tgrep -qF \"$e_fsid2\" \"$log1\" && echo \"  - mnt1 received event from mnt2.\"\n+fi\n+\n+if grep -qF \"$e_fsid2\" \"$log2\" && ! grep -qF \"$e_fsid1\" \"$log2\"; then\n+\techo \"SUCCESS: mnt2 events found\"\n+else\n+\t[ ! -s \"$log2\" ] && echo \"  - mnt2 received no events.\"\n+\tgrep -qF \"$e_fsid1\" \"$log2\" && echo \"  - mnt2 received event from mnt1.\"\n+fi\n+\n+status=0\n+exit\ndiff --git a/tests/generic/801.out b/tests/generic/801.out\nnew file mode 100644\nindex 000000000000..d7b318d9f27c\n--- /dev/null\n+++ b/tests/generic/801.out\n@@ -0,0 +1,7 @@\n+QA output created by 801\n+Setup FID fanotify watchers on both mnt1 and mnt2\n+Trigger file creation on mnt1\n+Trigger file creation on mnt2\n+Verify fsid in the fanotify\n+SUCCESS: mnt1 events found\n+SUCCESS: mnt2 events found\n",
    "prefixes": [
        "v4",
        "4/9"
    ]
}