{"id":2228764,"url":"http://patchwork.ozlabs.org/api/patches/2228764/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/patch/b089ba5bb0dedf6f8cf1deb61fa0579a1a67c2ea.1777281778.git.asj@kernel.org/","project":{"id":8,"url":"http://patchwork.ozlabs.org/api/projects/8/?format=json","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":"<b089ba5bb0dedf6f8cf1deb61fa0579a1a67c2ea.1777281778.git.asj@kernel.org>","list_archive_url":null,"date":"2026-04-27T10:19:40","name":"[v3,8/9] fstests: verify exportfs file handles on cloned filesystems","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ec5dc53e226be2a7fdcc4276946b94143d321de1","submitter":{"id":92722,"url":"http://patchwork.ozlabs.org/api/people/92722/?format=json","name":"Anand Jain","email":"asj@kernel.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-ext4/patch/b089ba5bb0dedf6f8cf1deb61fa0579a1a67c2ea.1777281778.git.asj@kernel.org/mbox/","series":[{"id":501620,"url":"http://patchwork.ozlabs.org/api/series/501620/?format=json","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/2228764/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2228764/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <SRS0=X75b=C2=vger.kernel.org=linux-ext4+bounces-16115-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=mncN7G43;\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=x75b=c2=vger.kernel.org=linux-ext4+bounces-16115-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=mncN7G43;\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-16115-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=\"mncN7G43\"","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 4g405711yrz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 20:23:07 +1000 (AEST)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g40570X9Yz4wKR\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 20:23:07 +1000 (AEST)","by gandalf.ozlabs.org (Postfix)\n\tid 4g40570SkWz4wKQ; Mon, 27 Apr 2026 20:23:07 +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 4g40533PSmz4wKR\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 27 Apr 2026 20:23:03 +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 C20C330347A3\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 27 Apr 2026 10:20:23 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 5AE213B4EB6;\n\tMon, 27 Apr 2026 10:20:12 +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 17C5A27603C;\n\tMon, 27 Apr 2026 10:20:12 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 59B4AC19425;\n\tMon, 27 Apr 2026 10:20:10 +0000 (UTC)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777285387; cv=pass;\n\tb=JUVLNe6hM2niHkZTC1QLgwkjjTI0Tg6CyYbag+LA83OAvt9sDUlFLazfILhYIiufNtTlmVsrhzm80nJMMuHUIZYXzgD88UN2NXKIs4N8hkenwBiAwjYfNt2Atu+dc8FeuEdqhsjOlJAy8Q0dw8jx32KYctHVAJdhcgm8HGsdtjknNa0OUUUwS9doNAQrv9lPkPC9oFdN0Hcd9/DHvgimGWHJNNmFjWZMssO10hb4DKuIxP0WyxIzgyhqnYVcOAk7s52VtuYnUz6+UaPBDfJmOcycgu+J/TvgJa+9502q7LRFzRHeTZUsCaRWy5dDKvKWwv6W6gWC0sUYRbvYqt7G6A==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777285212; cv=none;\n b=gxRkJjkWR7CSTUqTrZK3c6GTFQsTuLGvcRyah43hC2To8f1jAi265wo58uiZntd3qzUGrodZW/GitFCAB9R+ZF+YQQOy8WH8STV52C1umrWW0+6yqqNponGICmjkGlngMcUbZGpw5+7oQ77rw3/tJ3NVCGz81oso72EZwDdbOiw="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777285387; c=relaxed/relaxed;\n\tbh=pAREp7fAQokzzQcNJ/beA98mTCQhpYOgJff7i01rsdI=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=eRRtWonowGVnI/w3KfcbTvCJNk7RB/5zmVKez2qyHfPh7aGhTJGRL4qbXwh0qFRpuRnj0bDejNAYIsE7vLjXeo9RIqSu/FPQ4rU1sSQ18iZfGH4XYDkaqZ89U0OL3AyGRG8qICQwG0P5beKgd8S+Q21XigX6VXuYybI3apr2c8ZKwCXArGbTQttHCATS5QZzG/3PEPAY9DlQQYY1jXPs4DOpDrj7QHxnKr2qjoNtfkGlXMDVt9LqPd6Odxbra00OJT7xDwgOXrP70olhFOpY4OaQvHTPAUFuY7Fv2bI1XhBCOL8l1e6UKXAzHg14eh7sjc7T/JfXU49eFUMHoDLfXg==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777285212; c=relaxed/simple;\n\tbh=gOGc+LByiUJHyxOpgVlEhWER00jitWEP0oGaVTPapCA=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=cLi30CmitLDfq1Rq3r5/e4BHX5MRmi1X0pYf7JBYzjNRc3HUOFFaMxl/Eb4oYn0M3Q8H5pxFO/B8f+bpxv9R3iOljKM5Arx3LTh4vm/ClNvtLRcK5irZdkrAl16zCf6IT0tvHgEUrvlDOmbyx2gSoa/WsEKj+895mKJu5kS2fWo="],"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=mncN7G43; dkim-atps=neutral;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16115-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=mncN7G43; 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=1777285212;\n\tbh=gOGc+LByiUJHyxOpgVlEhWER00jitWEP0oGaVTPapCA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=mncN7G43qZqtS2m46Ok5MuNxd7XFcyLyXNepdOqhakJT0ZRtF8Ca/K76UlkOpVvU5\n\t tZLcusCmBz7Dx86sHAntHwa9pnKhd6u/b/rvrybzbpJrseRA8g4Nd40QmfDiBJhuZ9\n\t ma5brsNKxZbpB8KD+Sf7ssHifXoYyqVZHwkfcbQIgWOFrKq3aCeCGHWfm8pK/cq5b0\n\t EwOkm5e9lsmhx9nQCrDmttUwcV/4pPaVgxoZuC1hFNAwvfFFzRZOfx9LfFXZMGD3A1\n\t 6aXtFIV57Mmud/bgAJyXPb18ODaVeuoVpGaZwlb/F3Z5c+r2ll88JrmKBA1N76cKZj\n\t qbv0kz40q0ZKw==","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 8/9] fstests: verify exportfs file handles on cloned\n filesystems","Date":"Mon, 27 Apr 2026 18:19:40 +0800","Message-ID":"\n <b089ba5bb0dedf6f8cf1deb61fa0579a1a67c2ea.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":"Ensure that exportfs can correctly decode file handles on a cloned\nfilesystem across a mount cycle, by file handles generated on a\ncloned device remain valid after mount cycle.\n\nSigned-off-by: Anand Jain <asj@kernel.org>\n---\n tests/generic/805     | 72 +++++++++++++++++++++++++++++++++++++++++++\n tests/generic/805.out |  2 ++\n 2 files changed, 74 insertions(+)\n create mode 100644 tests/generic/805\n create mode 100644 tests/generic/805.out","diff":"diff --git a/tests/generic/805 b/tests/generic/805\nnew file mode 100644\nindex 000000000000..18c92205304c\n--- /dev/null\n+++ b/tests/generic/805\n@@ -0,0 +1,72 @@\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 No. 805\n+\n+. ./common/preamble\n+\n+_begin_fstest auto quick exportfs clone\n+\n+_require_test\n+_require_exportfs\n+_require_loop\n+_require_test_program \"open_by_handle\"\n+\n+_cleanup()\n+{\n+\tcd /\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+# Create test dir and test files, encode file handles and store to tmp file\n+create_test_files()\n+{\n+\trm -rf $testdir\n+\tmkdir -p $testdir\n+\t$here/src/open_by_handle -cwp -o $tmp.handles_file $testdir $NUMFILES\n+}\n+\n+# Decode file handles loaded from tmp file\n+test_file_handles()\n+{\n+\tlocal opt=$1\n+\tlocal when=$2\n+\n+\techo test_file_handles after $when\n+\t$here/src/open_by_handle $opt -i $tmp.handles_file $mnt2 $NUMFILES\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+NUMFILES=1\n+testdir=$mnt2/testdir\n+\n+# Decode file handles of files/dir after cycle mount\n+create_test_files\n+\n+_unmount $mnt1\n+_unmount $mnt2\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+_mount $(_common_dev_mount_options) $(_clone_mount_option) ${devs[0]} $mnt1 || \\\n+\t\t\t\t\t\t_fail \"Failed to mount dev1\"\n+\n+test_file_handles -rp \"cycle mount\"\n+\n+status=0\n+exit\ndiff --git a/tests/generic/805.out b/tests/generic/805.out\nnew file mode 100644\nindex 000000000000..29b11ec77ffb\n--- /dev/null\n+++ b/tests/generic/805.out\n@@ -0,0 +1,2 @@\n+QA output created by 805\n+test_file_handles after cycle mount\n","prefixes":["v3","8/9"]}