Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2228759/?format=api
{ "id": 2228759, "url": "http://patchwork.ozlabs.org/api/patches/2228759/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/d5bff7b1c8f17cffb13c8a8f28bd8ad645306e09.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": "<d5bff7b1c8f17cffb13c8a8f28bd8ad645306e09.1777281778.git.asj@kernel.org>", "list_archive_url": null, "date": "2026-04-27T10:19:35", "name": "[v3,3/9] fstests: add test for inotify isolation on cloned devices", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5e76285002ac981b673bc3b3229726283ae04159", "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/d5bff7b1c8f17cffb13c8a8f28bd8ad645306e09.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/2228759/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228759/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=nZru=C2=vger.kernel.org=linux-ext4+bounces-16110-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=O1SbjW/n;\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=nzru=c2=vger.kernel.org=linux-ext4+bounces-16110-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.105.105.114 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=O1SbjW/n;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16110-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=\"O1SbjW/n\"", "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 4g403C5nKGz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 20:21:27 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g403C5Jm3z4wKQ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 20:21:27 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g403C5DfFz4wKR; Mon, 27 Apr 2026 20:21:27 +1000 (AEST)", "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\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 4g40381Hs6z4wKQ\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 27 Apr 2026 20:21:24 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 95C2D3025F69\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 27 Apr 2026 10:20:07 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 4396E3542CF;\n\tMon, 27 Apr 2026 10:20:02 +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 03028309EE9;\n\tMon, 27 Apr 2026 10:20:01 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 1CEA0C2BCB6;\n\tMon, 27 Apr 2026 10:19:59 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777285287; cv=pass;\n\tb=jGee5A3ebyi4SRHpn0ty+XQNoJpqi4W7z7NCaKB/bwJmmnAgWTFZ0FoHhUNjZHAl1d+suojTpSKFDLFuQrByAdw1gNHwnYGCRPe0etMNpUy8cZA++a38IWljnPtl9Yixr6VHyBUG2BdpKm530stVDyRV7C252xTpwxwLfooL9hkiXBrtldqP27rpsEKY9scXqqjNhyx55+cD1WeKcVZMS/qds7K0WiZHTqlTFnZnNIVg6Ujm2LguB6wYALOipZkTDysm6qsr09dqhsJ5QovMYnnZuYx8zlRuzTez/tDs4nGAVm0wtHXNTv4NzRjdWzu33KPnbvYLZhEcqEGtPVqBuA==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777285202; cv=none;\n b=QzuPPNC3sbb5+fPvn2WfIpQ6iWubr7cLvOeH25NwfsqNrL6U0qz5uMe/C7vja+4NNOb9JquKqnA2UzXQD6rEj5FfC1/DBSdBCBjMCkSubs4BF7sttEa0AoASZ6oI9E6GKX+uQJRdXubnoRGPuXLpUnlvEHZKJk7WzuL0eepVtk8=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777285287; c=relaxed/relaxed;\n\tbh=226qzZxzSo9JyExsW3reeCbs+wnoR48rEIF3qt0zE/w=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=K6qVHBQuaVlVFMr1d+JguAUTdh2XvIvs1A0Lxf2SowJewb2QI1K66H9uy4ckezlaMsW00nNwh1pwRiWoPB0NA76nYuep3dFG0eNfNXqqMb1Kb5TxYpBQPa2r/erjID4hCPvsu11tW0kkyKemLJYa8diJ4DhBqm+0vpx8s2brNpyRm8oTDflHWxESjBiZarD1eqPwVPwz2HtY1SS7LXBRU9nYYjT7RlVSYo+n2V8d+kkGbu7BmvTOAyl4m2vhfj+34kiuU0BumlehVFviM6dC3tDFCO2Kgk9p++YUPRn8VdCbn2zlI7ueTiXIz579Q1l3KxTnVfDPr822AF6PK0uyNg==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777285202; c=relaxed/simple;\n\tbh=Trj3JgJDbrinXXZrHF7S16Cfj2hoh/nMtzDx9+PPKE8=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=fJF3OAvViqVtux4nFfw7xlBYD40I6CsSSul1CUEeLHanPgCQyhz+xzPeLm8BVFftK1arbT/GB7Z7ujzA6ZVJ/qPxfKDHODkexK+ntotw6CBtrR8gGnr2FomTpN3CsLgnZnDNKN3WMobdfdyP9MSRe/nlupsKTgppwZHUOXcP1vM=" ], "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=O1SbjW/n; dkim-atps=neutral;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16110-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=O1SbjW/n; 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=1777285201;\n\tbh=Trj3JgJDbrinXXZrHF7S16Cfj2hoh/nMtzDx9+PPKE8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=O1SbjW/nEu2aikeyVXGJwhzSEcoMs1ZLWFhdsCv3o1mPNhgcN74hK/SUj2QsE7/R2\n\t 80M8MsVV0VLXpecb8EjYcXKEAmylW7soARJo7h773Du1KKLoSqrX1mxJm4ZOQTohQX\n\t v4SZRfwM5Pz4BHUnafIwFn9p+Citk870Z11kXw+Z8z9atQApMdtgWojQrY2Dshg8Al\n\t aU3lnRVVtsQTqJZABkcoKMCdJihnjP+FEfeIuBX9RTAtcmtSn+XwGcx0w6MeGuZjr+\n\t rWMfuE4yL9m3XppqRl2TM2r8qTh9FXL++nLF2QmK+6t2OWykQutGEx2jX9ifazJLew\n\t ureHk8MfbRQTQ==", "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 3/9] fstests: add test for inotify isolation on cloned\n devices", "Date": "Mon, 27 Apr 2026 18:19:35 +0800", "Message-ID": "\n <d5bff7b1c8f17cffb13c8a8f28bd8ad645306e09.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": "Add a new test, to verify that the kernel correctly differentiates between\ntwo block devices sharing the same FSID/UUID.\n\nSigned-off-by: Anand Jain <asj@kernel.org>\n---\n common/config | 1 +\n tests/generic/800 | 88 +++++++++++++++++++++++++++++++++++++++++++\n tests/generic/800.out | 7 ++++\n 3 files changed, 96 insertions(+)\n create mode 100644 tests/generic/800\n create mode 100644 tests/generic/800.out", "diff": "diff --git a/common/config b/common/config\nindex 4fd4c2c8af11..605a57947a40 100644\n--- a/common/config\n+++ b/common/config\n@@ -242,6 +242,7 @@ export BTRFS_MAP_LOGICAL_PROG=$(type -P btrfs-map-logical)\n 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 \n # udev wait functions.\n #\ndiff --git a/tests/generic/800 b/tests/generic/800\nnew file mode 100644\nindex 000000000000..16bc1159a2e1\n--- /dev/null\n+++ b/tests/generic/800\n@@ -0,0 +1,88 @@\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 800\n+#\n+# Verify if the kernel or userspace becomes confused when two block devices\n+# share the same fid/fsid/uuid. Create inotify on both original and cloned\n+# filesystem. Monitor the notification in the respective logs.\n+\n+. ./common/preamble\n+\n+_begin_fstest auto quick mount clone\n+\n+_require_test\n+_require_loop\n+_require_command \"$INOTIFYWAIT_PROG\" inotifywait\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+\trm -r -f $tmp.*\n+\t_unmount $mnt1 2>/dev/null\n+\t_unmount $mnt2 2>/dev/null\n+\t_loop_image_destroy \"${devs[@]}\" 2> /dev/null\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+log1=$tmp.inotify1\n+log2=$tmp.inotify2\n+\n+pid1=\"\"\n+pid2=\"\"\n+echo \"Setup inotify watchers on both mnt1 and mnt2\"\n+$INOTIFYWAIT_PROG -m -e create --format '%f' $mnt1 > $log1 2>&1 &\n+pid1=$!\n+$INOTIFYWAIT_PROG -m -e create --format '%f' $mnt2 > $log2 2>&1 &\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 inotify isolation\"\n+kill $pid1 $pid2\n+wait $pid1 $pid2 2>/dev/null\n+pid1=\"\"\n+pid2=\"\"\n+\n+if grep -q \"file_on_mnt1\" $log1 && ! grep -q \"file_on_mnt2\" $log1; then\n+\techo \"SUCCESS: mnt1 events isolated.\"\n+else\n+\techo \"FAIL: mnt1 inotify confusion!\"\n+\t[ ! -s $log1 ] && echo \" - mnt1 received no events.\"\n+\tgrep -q \"file_on_mnt2\" $log1 && echo \" - mnt1 received event from mnt2.\"\n+fi\n+\n+if grep -q \"file_on_mnt2\" $log2 && ! grep -q \"file_on_mnt1\" $log2; then\n+\techo \"SUCCESS: mnt2 events isolated.\"\n+else\n+\techo \"FAIL: mnt2 inotify confusion!\"\n+\t[ ! -s $log2 ] && echo \" - mnt2 received no events.\"\n+\tgrep -q \"file_on_mnt1\" $log2 && echo \" - mnt2 received event from mnt1.\"\n+fi\n+\n+status=0\n+exit\ndiff --git a/tests/generic/800.out b/tests/generic/800.out\nnew file mode 100644\nindex 000000000000..b10842a31210\n--- /dev/null\n+++ b/tests/generic/800.out\n@@ -0,0 +1,7 @@\n+QA output created by 800\n+Setup inotify watchers on both mnt1 and mnt2\n+Trigger file creation on mnt1\n+Trigger file creation on mnt2\n+Verify inotify isolation\n+SUCCESS: mnt1 events isolated.\n+SUCCESS: mnt2 events isolated.\n", "prefixes": [ "v3", "3/9" ] }