Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229320/?format=api
{ "id": 2229320, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229320/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/01452c53ff400026796c4d43e2e23906ea9071ea.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": "<01452c53ff400026796c4d43e2e23906ea9071ea.1777357321.git.asj@kernel.org>", "date": "2026-04-28T06:42:53", "name": "[v4,3/9] fstests: add test for inotify isolation on cloned devices", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "235a8f4498dba76e112e2d4e4511fc752d584e4b", "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/01452c53ff400026796c4d43e2e23906ea9071ea.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/2229320/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229320/checks/", "tags": {}, "headers": { "Return-Path": "\n <SRS0=rfLl=C3=vger.kernel.org=linux-ext4+bounces-16138-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=XE2GMlNG;\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=rfll=c3=vger.kernel.org=linux-ext4+bounces-16138-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=104.64.211.4 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=XE2GMlNG;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16138-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=\"XE2GMlNG\"", "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 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4W9Y3wnZz1yJH\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:43:45 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g4W9Y3m6Tz4wJP\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:43:45 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g4W9Y3hqlz4wK5; Tue, 28 Apr 2026 16:43:45 +1000 (AEST)", "from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\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 4g4W9V29glz4wJP\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 16:43:42 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id EE410301153F\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 06:43:21 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id CB76E351C20;\n\tTue, 28 Apr 2026 06:43:19 +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 8AB6634D4D6;\n\tTue, 28 Apr 2026 06:43:19 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 99B8DC2BCAF;\n\tTue, 28 Apr 2026 06:43:17 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777358625; cv=pass;\n\tb=qZPdnicpfRIlkyeWhxG7gQWOD+MyG7jPvLPat1n2EpqCQpb2JK1kf5FkwFqui91O/Uz24mMl22+8SlGFLTwBmp/QtkZDfuTAM7oVNgo+XlmupsUG276TgNRb/KXs7dUn+FDdjHVPMOCZeAenJRnZ6ptMHzjoSdqGKrRUmA93vtYEP2hSjoWtsKMHCI4aQYfJxRlaKPCFD4fuHPuIHFTCfVkDDwthWzbaHbcr0Vl4c8RM5faEPVfacWwGac0QYeMlHqzkNToYZmGuo2OstjY0gl7ftaK+nyqXAL3F7oHCJyGiE+3+fGUXXITbdlZidCLi5qDYDjNKrGAgJJ9Cy6Lesw==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777358599; cv=none;\n b=AwhCex4wqrB1oEddTRpasIzt1cZbQhPOYuWhV4xtYxvy01/QbxcfEtmMMuHPWOTJ845KKZdcZNOfemXwn8Vl9r/03hjFrsBZMEAw/zqBTsIheyPFLf7vGGe0w0xNEA52c+C02pR6dwvAjrk2z4wCoQpD/OVBVSGpMqtB4uJM5YQ=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777358625; c=relaxed/relaxed;\n\tbh=73B+pp/6XgenEBqlVRqnso7qROUGM1/cbkkezh6QMrA=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=J9DJfdFxPMoy8X9uejECbS+65kw5tehZZBdKgCS/YeqhvQMUOqUJ/xjRIVi80LdspRGFY/Wv4lK1sxTXsKAuNJ5pG7Sp0jHeDpM3OmSgIYP7RgzkfA/DczdmsoO4KcICOQV34adUXbMAp/3FNmro1cNS+93TM+seW1j0XBkPEP0QjktbcWBbElSKz9RhUwledtUv2oAme8gcjFzBsegJZ0Hiw90QRgS1UhEnirNgEhurn6ldZJmuKwQS5rdmMqzKV4fstXYDX01KAAmhn1+BkxN/UrzuNH2chelWtzumyYrWudVb61q7FE6s17XkRpS9EtbiwWm0HM99F6vKUgPCrg==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777358599; c=relaxed/simple;\n\tbh=TRqMwolAX4yCDWXB0j0qpAqQz8UHvCOtRXRGaE/MMA8=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=jdWGMwAwdXefLOah/8voH6Ii14y28PTlhPW+IwwAAVsFvuFrlADWNhlIV134yQvB+jm+QW+EHfOmhyT43eeT4C/whnm4QaBDyDRS/I/d6p13LbMLZGmyDA/tAXel8TwAvUWEt9CXySwE6It3QwCpzOme7lcIEx3cLi5GH0XJO6U=" ], "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=XE2GMlNG; dkim-atps=neutral;\n spf=pass (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16138-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=XE2GMlNG; 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=1777358599;\n\tbh=TRqMwolAX4yCDWXB0j0qpAqQz8UHvCOtRXRGaE/MMA8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=XE2GMlNG7gq2bTtYeHZAOAhjqnP6d27fF7kcuijBEVVdgCe5YxpaQFrBsTVZLsa/5\n\t 5/YsaM7+/oua6+DJLhuKL868G/k46EJ+5qOwAUbYeGtJded7y9nqI2WF5riPZnHrxr\n\t ETv7NSobjASKRTPocxYtp0WDL9HlX9a7xsj3TsfO8RllS9usC0Xg4NrosmehDs2gnD\n\t E/i8BpWBDqqOwGL8sNdAWWxqLAnBwp1WVjrfglsAYFgiSBYV7moruCN6gzvZRsI7ai\n\t kO9XCyyAElQMeW1L7CsV9eMn2HmL328g7vbMo8h2osLoedcyNguv+zoopGyRnVvmzT\n\t GtliUsutGUylw==", "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 3/9] fstests: add test for inotify isolation on cloned\n devices", "Date": "Tue, 28 Apr 2026 14:42:53 +0800", "Message-ID": "\n <01452c53ff400026796c4d43e2e23906ea9071ea.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": "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 | 89 +++++++++++++++++++++++++++++++++++++++++++\n tests/generic/800.out | 7 ++++\n 3 files changed, 97 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..4b9bd3e4f487\n--- /dev/null\n+++ b/tests/generic/800\n@@ -0,0 +1,89 @@\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_block_device $TEST_DEV\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": [ "v4", "3/9" ] }