From patchwork Fri Dec 29 12:22:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506467 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E139111A8; Fri, 29 Dec 2023 12:23:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="hU+bYvy0"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="WM3u4TjF" Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT8OjaJ015270; Fri, 29 Dec 2023 12:23:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=LwbKa06U00fDv+p8TtWC4ombSHzzfMl70/LnBiN3Utc=; b=hU+bYvy0lyQ/YyizJsW1bw66iub1UKwjegU1IJiRlJNkId1gzmU3BDKziRIN/GEYMEBO LUQZe3H557a/uLeNoaioBEEZyUHrHVgOTIbyGVNCC3o5JNQam33hpefLJN2jsuQ0zVTH vOgEcW0R5D2nI0OBUn6sALIG1n4TfBRO494nYFV1MIcQNBn73nTcUaf9Fe48NLwhi8G/ IxwrV/dH0Vs4oGzEbsfqUGjbo+AO5t8LDHnV5KwOAWf6EsCGX3zCvAFtTe46XvIg8k9G DynWiSd2VjjOCuyOJ4JAiRhAz/B8vvE2Oo/rH6+BpHG/f7ELm/fQWmcU9sC/s5g4/2Im UA== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5pb47km2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:05 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BTC4gcI021438; Fri, 29 Dec 2023 12:23:04 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2100.outbound.protection.outlook.com [104.47.70.100]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3v5p0ehe29-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MGb6go1iZDThgzYzYOdwlJ10z0W4/6Ezxdry0YatHNaYjOEX14PA9tir1OjgDnhHxvyI3BxQV/Vty9nnEVRB96cF6WaiGsZFSpK/IXmCTqu3JXW7uoc1tXD9ri0oe3P2zO+bau+MKQeOg+w0yrEN5q/ZTcvLELpH3H32m6hCxHyYhzozyusH4JGVk4aRfzQBbK6MbytojU9pL/cUfWrty4T7pViKeTUq4gZtVC3sETJHJ7MkFZgTvnF1K9tq1rukIufqXEjIVgwlzjTuOMizuPbh7XSStzV4IkZYgP9/Uh/VXddHWPhuXcnnVaDoeKh3mqwMmdcX0eNn+enInVyU0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LwbKa06U00fDv+p8TtWC4ombSHzzfMl70/LnBiN3Utc=; b=mkKoEpS5UqSJ/WBdDDMsbu4+cU3z601g+URHYNgLfIVaz2wLUPqy9QgEUTEzC50hVv4LsGhv1JaZ1/3XfnNBHcSIUCsPJEOIVGISTNxFpof0haqEx95Mwm0QFikvBaZJGE8Obt27GlAvWfO74VqNt1ukTb+M/Iw/vX83KRh0fo79c+u+/dcKgZhUaF25+ONyR1U8j1nUDyeeHefKSmy1nFRrheT2vqgZCj2Ixs3if1Of5qkRvE8Km+Y+nPGfFtd+ufGfGw4vPKhMmX/GjAHZG+9DIlkuhMdIvN9Jgxm00vRqngxg4nRG7gm0z8KVpWqU6iVWjzv2aTG0GXxd+0hAaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LwbKa06U00fDv+p8TtWC4ombSHzzfMl70/LnBiN3Utc=; b=WM3u4TjFi+iLLVeUhd4X/xMVkDv01caDw01ubrRAbpmy8GwZm8hB8TCODTcOTUvmTpDQeHQ/aFpVSSt8uIj8kXQRJ8w+QSViOWMcT28bJn/IGZdQ0JWA61HrjQFDgds0EcEpfTk0bD0k09HOLqPt2g7Mk15n9l3lCT0xAbAAAu8= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by CH2PR10MB4360.namprd10.prod.outlook.com (2603:10b6:610:ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 12:23:02 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 12:23:02 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com Subject: [PATCH v7 01/10] fstests: doc: add new raid-stripe-tree group Date: Fri, 29 Dec 2023 17:52:41 +0530 Message-Id: <983b2fafff61a3d116554e3b4c1477793fd9270b.1703838752.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2P153CA0039.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::8) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|CH2PR10MB4360:EE_ X-MS-Office365-Filtering-Correlation-Id: 0fe477b0-a9ee-4844-5467-08dc0868e6a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Njc6IecVt9qzjjEPICPE2i110IPZlA6xiwThSLC9pMX3l478G+b1WgrZcmCD2MrS8+ZYVO3EtPa4WmdMC8OvuP52OvHAllY7ccZnqtSnTVmQb9qTxCGyJL5YOvabPcfFG3hoKHhEbhDOmkwFohAZKCRhT5Jf8XS7AC42a31p7GT5uMLsjtkFPuD64RRwR5GetcgI29MHKvq7wXMIun9D0P1dpgv1k+XHQ9mkNzlgiEd8tAVAoMPqfh9JXuPIWaeT9uxQEO8ZFtVOwC7m3vhr1TAv03QLvl8mRPthkwFGKt5NiTrSGt6l+6KsIBd8DciW5xVaPZZaln7uV5VwbS6i/GBpb6lnv6qTpkv3FUQ1gJvI4lvGEpJXUOLU9qf3WycWoghyNNjYLEYiNdlxtPvs1KsHaO9wkzMWCjiDhmdjHmY+n/BEkP2pbnxFM8rMb1MlAfQ/LbwjsK0ZQo6SWvDz5Jt/OxcSrMwW8wgRzfQnFEseErXmulTe/khsJktCcFP0WI/bVsDR1Xn5eIaRajIiCp40fYdV4fB8H6TFMd7oOcRu9ITIXys6XT+h+NbhLuRU X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(366004)(376002)(396003)(346002)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(4326008)(2616005)(26005)(44832011)(8676002)(8936002)(5660300002)(2906002)(4744005)(6486002)(6512007)(6506007)(6666004)(478600001)(66476007)(66556008)(66946007)(316002)(6916009)(41300700001)(38100700002)(83380400001)(36756003)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dCFBuNdO3cm0STeLuAIcQX8mk2BVNQye6dTfL1lq1pzxyecDjSqTFyziGaf8nfiyDAxpvPcyw5Alf2gXMCGPue2/2YK/KW+GCXkTbA2Awphhv/jtHVLoWuTxFC3EP++Zgh3gfoa66aYhL9W+VQPmepwbNRw/QrRGuQ8pObcj4N4rSOyWTkkzpI7kigGBZCmiErsn3ciahwczffrYhW60DRC4jXKC4jdTUTgAR6c/fviJr7JUK7Uwssrgf5sNM2sbg2/GoqbUnDfm0dzwmdQC7B0het/hY4K0Ve0Nrpx8M0IFDaIm762C9ap5+PKaYTGE5II7O5tfAPPUbS7nw+zjnUyturoOGMOybZkriR96GLkNIBCBXvlDswU+Q1n+8wsbhKVWTy/eTDbXG/UhQCMXvemCPTxBmO0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arzAyE0SMpcu3DD4UOY0FtILJ8GyCMYuQlYGgoFLKH/1v6fHfUXZEQ7AisBCEmP4bX9EtubwyQ9jnlkSBskKC/BMjIh4hYb3H/2VRYdbpHGuEx8tp X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: BgMCQI/f8xLq/Im6MtIottj0WV9jQvsxmOMO2/54LXFOLuMTqscmioL/64vvDYbr4x7xcbqRWgbmetvAuz5wUA0Y0hKZLwn9gyCmozV+xpclfd23k3PPKfgGhiFHCzmb7p1nPAJqAfw7QsQbAi0MuFE1XgSZiECv7fNLdL6YfBCMzcrYKotDQpyG6TWcnAZWMUrpdxKN+c9k00dcFqDa7OEi+fwCbBmBhjbIi7vxkz32c04R4EvR6NW5QQbROW4d05UxltyGjahYsVZSKg/n/DfqiJ5uk54R1kM1ALdxBV43ak67ildX2jCz7plM/7Q3aRAVqLcbZeBCGUoYSgo5lHjgyZCFylg/9TPsLJMxNfaz1V0Ra3qRpPjuZazbG0HH+lWNfCR3TXIlko/QWHVE5X61sYlzxw2HrTSFpXYJKo0iRQRvSTFBqhfM2nBO9o7sN9ryG+Y41C7TOF9CL6o1RU6UWyNtKPe/pxibOB30OOtQbmSqhCMBZulycdjb/O8PXOVSWK9bITC1No+wziSn6SiG718odAq7HWo24zE2uEFK1e/dErTK/92INnk/29a7XiU5efblL7cTfGrTS0N0LOXAwNSdDHKA48L8mgfp3Rc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0fe477b0-a9ee-4844-5467-08dc0868e6a0 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 12:23:01.9699 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: H97reQhKpPEOySiozFWL47x2hn8GTrVuOUN61M6nxrXWQOIhELxiw3U6GDP/Tagzjj/q0AyO1GgbYCbcysB5qA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4360 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_04,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 spamscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290098 X-Proofpoint-ORIG-GUID: -dOkN1UjtxHlo8dnxbu49WlBMu46GaUL X-Proofpoint-GUID: -dOkN1UjtxHlo8dnxbu49WlBMu46GaUL From: Johannes Thumshirn Add a new test group for testing the raid-stripe-tree feature of btrfs with fstests. Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain --- doc/group-names.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/group-names.txt b/doc/group-names.txt index fec6bf71abcb..2ac95ac83a79 100644 --- a/doc/group-names.txt +++ b/doc/group-names.txt @@ -94,6 +94,7 @@ punch fallocate FALLOC_FL_PUNCH_HOLE qgroup btrfs qgroup feature quota filesystem usage quotas raid btrfs RAID +raid-stripe-tree btrfs raid-stripe-tree feature read_repair btrfs error correction on read failure realtime XFS realtime volumes recoveryloop crash recovery loops From patchwork Fri Dec 29 12:22:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506468 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A39411724; Fri, 29 Dec 2023 12:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="ijzneoe+"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="BFlxWHy3" Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT8O74l014965; Fri, 29 Dec 2023 12:23:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=OUh/Gvpal7cXTPeSUCAr7wMpD4KDuZBBLfCFpfDzHxs=; b=ijzneoe+vYit+pUik0WepfCz82ezm7i9TqYaaxkroAYrPMXqnQADCSHnVJeQ2f2jfymm U0eog/3ZtIEQBTi9v1EkCh1106smh/P63dz+fKp60KvVHHdxfzIuSwutlgd1mq+/HRoH HQIM/1ICi0JZ0UDz36V8K8WZkYX7rRc8LA3IZDQVT5tMYVnJTc6DB0hYEmO6rMpFBwzT jodk905cB27yfZwEWIN2UPhOOTdi32GtyVqubsb6yvVqKydc4dZrPuaUw6tSps4aFEDN tUzKEdIjODOQm2G6PTzP+LV4fTiUJqg6m2YPGs+gS3pwGl42+2ND0+6h3T4zT1KwakHV wQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5pb47km4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:08 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT9u3uN035662; Fri, 29 Dec 2023 12:23:08 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3v6a965me3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WbQBJqus8EP7mUys9F3q3Pe97xf16DRu0KhjulvDQunldnRcWeuxF2BUans9I6W+m8eHq+Mq0KK0s4ouPizc7Ub/WOpnIyP3rrCKIZU/jhAjiDBPOV8GofpygYkLvDMS6s+hI2Jx+GJqTqD5bPuoa99uCG7nU6/xsMKfs210HlqqIAnKb6du44/ucHAq5864jhNJ60IrQG6yPkZ+ky2mDZRkaRT8I4HWZTy8uS3v/JRTrnVnTE0Z4N0RLqp9Y30JoQqFOJrdT5DGGdX6PuVng3D04DZUCHC6K6ElItlppB79+njx/hpypjH8eyFcigh0RaM7irVomKdrwu7oWx560g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OUh/Gvpal7cXTPeSUCAr7wMpD4KDuZBBLfCFpfDzHxs=; b=IDdaTptBmzuPeKsALM8zmkZ5o4E2wqYhf++3OsvfbRfanMMc1+NYAeWZiGQaRnyhd0KYAKXoYluCSPEMxotN8IN5eXiC8ZieRGCRGqaospyo3Fm7iT8uSyuEiOaO63zQ+saGkrUQlmMmFIERCZYNLf5RWGfAbhQ3Y4mm00TtPVITDz2M6h3bs4MrdkK8AoWkXlQtiGcJ0EDeqJkhMrZeDEeHSPtUdYy0ACW/q2hK/WH9GygwCMcCykDBUzhRIz/hslyEKjKOBxblL4Ya7mbsLzBv0ISt2mUv5lXOHkG+JeBITVdF14nlKM6ASeMk32/NfwWT1dWd+qb9RpNAjOBbYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OUh/Gvpal7cXTPeSUCAr7wMpD4KDuZBBLfCFpfDzHxs=; b=BFlxWHy3HTkQsOMsJJEXtd2/1BtxG9M1SKySkSjpoemf7JmsvSav2/nlUGFbpipFaUefjPjvUiWicrCiSrC4/KYw01uu49LIWbgv0hae6+0H/xMrW473MHC0X4aYyqDIDsKQ8v7n5OPkRUIgKu0yu6VCzCfXwQx/3NMI4HzqFKA= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by CH2PR10MB4360.namprd10.prod.outlook.com (2603:10b6:610:ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 12:23:06 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 12:23:06 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com Subject: [PATCH v7 02/10] common: add filter for btrfs raid-stripe dump Date: Fri, 29 Dec 2023 17:52:42 +0530 Message-Id: <37e54fb6ad6ab6d16e9f211d668aedd2463a79c4.1703838752.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0019.apcprd02.prod.outlook.com (2603:1096:3:17::31) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|CH2PR10MB4360:EE_ X-MS-Office365-Filtering-Correlation-Id: 3081c240-0263-488b-d1b3-08dc0868e966 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n0v/7eMWe0W+x0o2SwAmeHEHoHaeZmhZSmlJ9t4e3LOiwf9LeXv/NfIkIrhZmZV/uuorlGCaXFkxuRc/iYCrs25gRqlUF+s2S8r102r01nYZdC31NM6VVF4H5k61ca5cxzEEqnz10auox+BPcI/9naNJ4UQNvp6I4p0qe4yZQlhwuxbd4GWXb9NjC3jOLn5uz943PsEPxGNBd5S1z5hZh7VYAtf0DWXu8D2gSDRdZ80AagBe/96AqVugTuFaxHMPWhQjPsXSrS+09nxs6ao4MuxlZ2PaAUXGQFQ8o79KCZgr4c27XAaVBA1RIIM7+Fp0arBL/pdS5NHifPF+rK34S6uMBKcm53IRaPdRXOp/NKdGIA4uj52J193If7OtQJ/UR7svbIVy/fErD7LibRP4XOgQiYKrUOOrlF0kJ4e4MUVsYdkXgTFHBJ0ZNl9u8fReETOYa1KbkGJn+ufXo00LkpHc6kLysnTV84KFtFgAtFb2lK+8FLiGYWi22FLLGgVLU09vyshQFWh88TRFUjn48ZAtYNcKIJCUWyrgCBqurFy+9CZpZrYGQUYkh3XBa9hC X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(366004)(376002)(396003)(346002)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(4326008)(2616005)(26005)(44832011)(8676002)(8936002)(5660300002)(2906002)(6486002)(6512007)(6506007)(6666004)(478600001)(66476007)(66556008)(66946007)(316002)(6916009)(41300700001)(38100700002)(36756003)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gVysqYIGnnSfacP2jo+FEwH5oBADAQF5rZwXfppwRG2A2JBlWVMC1m7wAE+fyqR4OtWJdW71/YCI4X8YhfqVHFAaOs2QO5V/18w3V+zehG8kYtnA/h1Sa3f1O49P43nN4j3hTajvmsacdaz515uqRggR/ZenTCs2QL9HmsKuPTNNmjhV7gha7sH00pHKfcGZ7rJa9axTjnjxbZ2OF1CgfgMhuNKXdoLxBlFudHpv054Rz/ofMGX21nqkChVQH9LropQuE33pmp1AdbnJNrozkLVmwVYMcl9Nj83c7OW2XDagaWv94hgJG1CHHw3wIBZKTZggMy7cz8wPBc5LLGL58mtYVOeQya4ryFh3TUYrkf3ICs4JYlUYIiJjMgVrTDheO/qAdwE2mHd2YOcZrCN9NG9HYJEakvzGoXp0CWzxkyl0mABrg9ys7rrVZUCqtKVss8qIwbFfWNK8Uwz2D0wkFUq1pMmY71K7loKAAt5rIbo+zirLKas4n7gTL0WEb8qCIWYGyDf82N0QVJ6uLIWj2o2DZ8F2dbvBlYoqTKcmjS4BMrGMzPdZNTXbq8sPudy3pmz1XqG3UBzyRR4BG783QEP9rYot6uwRkhonlkL6kINwEi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dcBfGY9nqhYVguTds66DSEM6X78kCk7ydC7k8eU+2jy1ch6U6t8dlJxNEcEfwkn7ibUexopFImzZNqOav3gCGM9TRanIvc2y6r4djwevrUYqrAKANnyMpgAxPYMagZb+hM57OvSbsbfgyIvdDFpEVDsKupFD6MobPfqZ1nyd4ldaiT17wzeEsF7ymSE3op2K4u201rF7WaXPdMRLCisIagGodIkFkTI7/xvfodK8HVKA2uz+hzSXD4+DRTBMRB86tATtlnReFbiKPWmcL5uIUF4Q+ihop34LU4viShXgv/RjbHpDF36ST1buXbHZ3uqSuYcsrJQz3MuU0TakaGxv1eshJqOn58Yop+GTNSGF/lmIqxSgSg0XjEGZcirOOA7KMXtxxIqa65U7DlsyLeBb6r+VhI1y1MgHng78Hnps7rTFrcvmpcHeqrQAtLD46qv16jQeJia+EF/RmlLrMzhGfxy6dWcG2LqWcP2v9rWTsXjsUS29Mh6BmTANLdEsI9undV4qPJCEZn0YpejujjE0cPvCAxAb3btRERjnkcS/y8hDJjy/wx8kPU9jlJBJMJIur6RkuPyII6CQ= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3081c240-0263-488b-d1b3-08dc0868e966 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 12:23:06.7914 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: i93jJv3+uq7iT5t9tPuAvO7toJutRiBf3p0KjSK+tF1P0bZO3GbcyST7f6LFL1Tp2r9U+2oDoQJfhTh+iEZVQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4360 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_04,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 spamscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290098 X-Proofpoint-ORIG-GUID: AcWEbmEAY9XZWgXL8YomT-I784fJ9wid X-Proofpoint-GUID: AcWEbmEAY9XZWgXL8YomT-I784fJ9wid From: Johannes Thumshirn Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain --- common/filter.btrfs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/filter.btrfs b/common/filter.btrfs index 8c6fe5793663..e570648bb5e6 100644 --- a/common/filter.btrfs +++ b/common/filter.btrfs @@ -126,5 +126,19 @@ _filter_btrfs_cloner_error() sed -e "s/\(clone failed:\) Operation not supported/\1 Invalid argument/g" } +# filter output of "btrfs inspect-internal dump-tree -t raid-stripe" +_filter_stripe_tree() +{ + sed -E -e "s/leaf [0-9]+ items [0-9]+ free space [0-9]+ generation [0-9]+ owner RAID_STRIPE_TREE/leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE/" \ + -e "s/leaf [0-9]+ flags 0x1\(WRITTEN\) backref revision 1/leaf XXXXXXXXX flags 0x1\(WRITTEN\) backref revision 1/" \ + -e "s/checksum stored [0-9a-f]+/checksum stored /" \ + -e "s/checksum calced [0-9a-f]+/checksum calced /" \ + -e "s/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}//" \ + -e "s/item ([0-9]+) key \([0-9]+ RAID_STRIPE ([0-9]+)\) itemoff [0-9]+ itemsize ([0-9]+)/item \1 key \(XXXXXX RAID_STRIPE \2\) itemoff XXXXX itemsize \3/" \ + -e "s/stripe ([0-9]+) devid ([0-9]+) physical [0-9]+/stripe \1 devid \2 physical XXXXXXXXX/" \ + -e "s/total bytes [0-9]+/total bytes XXXXXXXX/" \ + -e "s/bytes used [0-9]+/bytes used XXXXXX/" +} + # make sure this script returns success /bin/true From patchwork Fri Dec 29 12:22:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506469 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C77FB111A0; Fri, 29 Dec 2023 12:23:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="i1J6FbIk"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="c8igmJrY" Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT8OTGT008999; Fri, 29 Dec 2023 12:23:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=b7ggi4FCh9E4tGxGfGXV3b0Nabx+FjqUDSfyS7aTaDo=; b=i1J6FbIkX/G0NnUReQvVm8MchwaCNEHqKVK5RxmR+Me6cxoESPRcpA55nIBpRAdS9dmN 0ASwGc+UKF0XaoiBH8RDHTe75uwHbN4MbZnLZcj+Rxk6oLxjLsXOwdKVX0dsoVatt1kJ AKVXn+aNmwlA2Xry3mtcjVAaCeGE1twNmThl+9iOeQ1h0t4wYqHwpdvE6PxBW3VMDd9D CXfjJkC5uTMAnUdUVyhbbLywFBFazK3Z+UufWPrGrpSt5vjmPA6U+syVwRFph3PfoCk2 7cWxjzpoNkneMMdkJBgqGTINwbwRp1ISeCXxgI5lEer0c0ukuk+u3mFwoESFomStDIuB iQ== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5q5ufhb1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:15 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT9CJJe011173; Fri, 29 Dec 2023 12:23:14 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3v73ade3bc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZQQ9TXB3VMb0Nf3ecIU3GJDJeyUwunlP/1kOtXstgSNOKFB1ks7bbMsWKNij4vsHsHN8xzxr3Bur93uq1K9IEAZQ0RcXaAsgWR8OfPvii/afMlStnaEDUxliwJu2p6X/9a9zs3/BDtmzVZS9PvIKvWoTGXN6O8u3DXiG0gn1tsdphE2mx7actNgft9UfP01+JQht0HQeSWyJB05WOYAYG+6uHBE+r8XOF4oN7+E7yNTYIJ1hmJj1HUWpYfdl3LzfagoQ5ERn0aXo/DRtFdsKZR9sg4vKpxzABuazzGdxwxUJE0eeTqcBPel8q7s3v68nZ+fJLZRG7fqTVkT8j2KOaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b7ggi4FCh9E4tGxGfGXV3b0Nabx+FjqUDSfyS7aTaDo=; b=KLWbdKmghqUIN3H1R0iYVLAGmq2Z0aN3n8ZP9p9bqbPLn/cQxcJbQQ3DXoD3P4V9qkK7h7vKDJXI0UaGac2jszKMyLW8hTiPrhFp+ElXjr5AasykJhKLN5xGC3CJeVmOK0viNWDO0HiGGA0w1Yz9zEZudTH7j6jzMZFhjd2Yd1lPMZhyRxHYYeUQ7WnOxZQ3Uo37h+uijxrxJwwN4pXfay6PXi/6egaAFxurBdt11bE2PzIS5ua2+IeoJHSvbY//Q6c8cmG1rSPvUXy7cK5XinWlynLO0CqQqAzIlhMh5nqOggXqQYGk2uK22pJY+Lt5ZjnYWV8IuwSseWKwvy+h2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b7ggi4FCh9E4tGxGfGXV3b0Nabx+FjqUDSfyS7aTaDo=; b=c8igmJrYxYbGLJW4kf5xnGPhU/tSj3v7JlTuaHq3TUNZ5LvLx2nxBhDNwABSF0+pPoXZOBsa9KMAmQFhgU3lialEiesDMJ2swe9uX6WnjuelI8I4mjMixvdVBUkuLOGBt+XyQegOUtPkXuou8z/f2Qi+3uAgsqk672c4xDpt3N4= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by CH2PR10MB4360.namprd10.prod.outlook.com (2603:10b6:610:ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 12:23:12 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 12:23:12 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com Subject: [PATCH v7 03/10] common: add _require_btrfs_no_nodatacow helper Date: Fri, 29 Dec 2023 17:52:43 +0530 Message-Id: <877c3d18e5e3356570e77801212b83dde7ab41e4.1703838752.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0079.apcprd02.prod.outlook.com (2603:1096:4:90::19) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|CH2PR10MB4360:EE_ X-MS-Office365-Filtering-Correlation-Id: b2326122-2026-42c7-6d6c-08dc0868ecee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CWfbp6ansUrT7V3oGQ3easB5aVy9BDAKrnaqIaaaZbsGkZOaSvkpaWZ84GJI43z5YhYHF0ZmXfY+OO4Y+boscZ93xdysCsKrNFPn5YK4fMoOB65WZhWwpEbqtYHO14rO4s66IHY1gKWVeuxM+85HRUI34tr2tGfCe8zUP99qTYBmF8z9sk6qEaLmIFwOJhDrn9REcYoaYhpwkqqOU9BODj5JtDsZlgeSGFXZL6s7Uh9qpd0xbuvMHLN06c7NnfuYHIuI6BhD6KdZdIpk2gCK8pX4DRdsQNTyr7H0JWYbGrhgI0s7RZXcuiU6/wfTSKWJRMuSvccRnN/eVy4AmUbgjDWpKZP7KkMQ9EQ/DLF8tUdf2AMQzKY7W/grIQILyANSrVvX7Bg78ibeHT94LFEDoOnvl/T5ZL4U1zdSc/s5U7kJ0kezQLB/nlBOYSHOct1Mb4mnrEqzVK0D/Mu/TpEWsL4NP36aJkbczMxeMVytfnnmT77eDMj/U4Pva6eEaTUAs5n6GFdcbtX7MnZDbwN8E51dM4wAHcfyfMOXPmDCWA8DxOxZh1/+ibdBncTlyW2A X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(366004)(376002)(396003)(346002)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(4326008)(2616005)(26005)(44832011)(8676002)(8936002)(5660300002)(2906002)(4744005)(6486002)(6512007)(6506007)(6666004)(478600001)(66476007)(66556008)(66946007)(316002)(6916009)(41300700001)(38100700002)(36756003)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zmN/ZWbqXzX1+14zKS7yP1dPFKomAmwjc1zyz5Kjd3SlqiAYRZBDE02iVKsuaIob92thZnvrvFOd9GDTshi6PmHwzjVqOGnbroO0Zk+NxMg7kbs9uuxYRnoLGOtK5NxbAUyWXad/wtpHayVJgj5gosp2AMGXWXprKaG1yXIQYLSwQKghgMY70D5yK6xKLGdAByfsCz3DAWAqiGq+QKIubWkZVkSh95KY3Y+UU7ofNfMy4D57qV/rX/OXDFZolM3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jT21yAg8i8IwwSD/EvYCoS7Y0uK5dg07oZfZy/Tchz5qGPQ4s3dbedyjIHA0n5wLfQhViXYqGy0zynXyVOURkIujr9bVOsa2uyHdhOECkx8e03LMbeHYark96kKEx55XEpdJTr1I4/SUqgnx4pZQOfxttvFDYqC8U7rEz33/z60fu85D40pCVmDTO7QEKCyFDuX8pCzJVP8YAVmth9n8Yo9r4VVJYaaqjDOg1qpWxQr32+W+Ee1RdY7ZowcVaUwwWqA X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Op7x8oVmlt6RovapLc1LnR5r4fg0KiBKrACE/EvhzvrAFKv0cz4Lrdk+XKi18jiSHRiFj4sG/ALGUgnqvPq5LnQK1kxJF+lyXcjW8VtLXwUlfQjtQaP0UZw3K+PleWpwP5uf/FDVjj1rZEGikCm6F1e0nJBlGWKRDqZ4cl9pYKsWMe0FMO8O36vbV4Y+ekoDTrIswUvNpjfDVpaywwA03z6NH/lfthhwcVBBgxOq70EDDTqcizXkyQ4C7+dzBu8UGU17BD/WPjlcEamzj3kTNN40fM1jA9gdvPZ8f0qmG4HSseO197Uaw/XFB/Yda5fiO/1loZ9mTGDSh69mi+ExuOiKxmF9heBWpmolLM5Zwqv8P94BGdOGuYDZPlleN+r0357psguFrxP/SW/ZqZiXD6+g2z9bBG++iHOnlyMjSLmjkU+p9HR0LdtLF7BI1JViV5F0YC3g4XgkpvlC4siR4O7LA38feYmrWvbEcRk11+3HYa4+1P/phVnm2kZloXmqb7obX0UkDgkaEbEQYLbu8KWyXGpAVPKbPhvc0lr575WIcq/YbO6JEBp1q9gW8s8e7iR4cpt5DiVQszo4c1+wC9gVS0Tszc6+7eS1+38pb2k= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2326122-2026-42c7-6d6c-08dc0868ecee X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 12:23:12.5645 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zwXffuRgkNISopCf0a0GbjZTxTVqAs7Y049Gv6vwkkAxtr6H1eaAemC4j+rRBZdtdSndJIjLLI0oE6sF3UAENQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4360 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_04,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290098 X-Proofpoint-GUID: JjpzF-2GTyijMduD7OAuno25fMfe1fjK X-Proofpoint-ORIG-GUID: JjpzF-2GTyijMduD7OAuno25fMfe1fjK From: Johannes Thumshirn Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain --- common/btrfs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/btrfs b/common/btrfs index f91f8dd869a1..9dd2a7f49e16 100644 --- a/common/btrfs +++ b/common/btrfs @@ -120,6 +120,13 @@ _require_btrfs_no_compress() fi } +_require_btrfs_no_nodatacow() +{ + if _normalize_mount_options "$MOUNT_OPTIONS" | grep -q "nodatacow"; then + _notrun "This test requires no nodatacow enabled" + fi +} + _check_btrfs_filesystem() { device=$1 From patchwork Fri Dec 29 12:22:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506470 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 835B61172D; Fri, 29 Dec 2023 12:23:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="fkCzXiLN"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="CZ2MT9z4" Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT8O2u5030071; Fri, 29 Dec 2023 12:23:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=6TTvbwtraQDkFvT55vMDBshuPhLd6jw4iC8y8ZykkjQ=; b=fkCzXiLNX4/IqqaMN4Oj3gPeZKD718AUeqZOexaM869dYKTuTGj1PemECY+lI7GUoBwm 4Gd/iQiai2uQYp8EDjRKsQMrdMKbu/Dy8oi+yLn36El8pSEfOXVzA2ejzLzWfovm5MDu Sb/FqXoxzwrONkfK9wEmfluSw4u+ziUAWobVWVCtLA34MwniUg08JYTlf0duE+7mCTC9 5d1SFJ+zWzek1OYn99aMx8WQ3p5/f12h7K8XvzqQlJ4acMZR/ZQbxBRNV9GqnfeC5LwP TcAZb45qJveoVbrM0VMPAMpCbSgMG5ZfCU5jbqTc3iURHIn8oseFt9kEc+0yoMjUMlJn vw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5qkd7k7y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:21 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BTC1c58014160; Fri, 29 Dec 2023 12:23:20 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2100.outbound.protection.outlook.com [104.47.70.100]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3v73ade3cx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GLMJsYVzFBZOnSggVZhPCv5uFN47S1Ldwjzd93EQN5zCeQyiAhPAQ2X4P71zJl5Uk+w1p8XGxGec/r3BUm/20I9PgdVVMPc7txgWwBxnJgp1eSh4/Mn6n7QvdoBtzQIZtYG+Ygfa/djwg8/6XnKEgHnPALVqikvN3640Ma8cZFOxBV8CtpDVI9+y+iUW29Pd5Qu8CdrRLynsFomeC8J9BCbLsAD67UGy8e8Y7nyG6EfsamAqv2wbQqDFeHp42XyUZObYWSpVIrZbKdnDzGW1vsQ+sYKM0bJPsqrJ2axuzunCfyOGyxFf5+zxj5j62CdNlM0y8f7mgd6nn5KhNG+GCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6TTvbwtraQDkFvT55vMDBshuPhLd6jw4iC8y8ZykkjQ=; b=OalQOfib/ywtHktrtZIUhj1+42GFBne2t/IXCI49EruLnutn6ipbCM6tTOZ36OTBQ+J0bC74DxpFHTh+0TJvxUq11KtfUhQcVGsM1CQF6H6RXwa74TQ+968u2koAGJqU/qT50KW4KxDCgd14xUpmc5vMTdZmQhcohJDC7H1sfauc2PDyrWvEdHFuHPmVSNZJGodcHhXp5OOyR9A2E/4fht3iW/mUkzzAOyI4Wq8Kjs2suAJgUYYoYP8ACrxsK6bLDdFZKvGJbeDhzd2WDRIZbKhGRQ2yQ8v8+cFsIXUbDSBva4/L47BovPVGIudxOorQg+oUctSGY0tVJBVQgbebyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6TTvbwtraQDkFvT55vMDBshuPhLd6jw4iC8y8ZykkjQ=; b=CZ2MT9z4EliK6gi3LVRN7iZQqczbqz5KuKoA0cMdK0y6xh9NSn9G4NFLgacZwAg0Sb/Exfd32BYpKRcEMOoZ1uATt37av6y2vdeoeUTS6vENorBz9Sa2MT1XmisygT1rAzb3gFW4j2LZsHTh2CIebYGq2aOEHIkUbmMJqKbp+WU= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by CH2PR10MB4360.namprd10.prod.outlook.com (2603:10b6:610:ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 12:23:17 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 12:23:17 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com Subject: [PATCH v7 04/10] common: add _require_btrfs_free_space_tree Date: Fri, 29 Dec 2023 17:52:44 +0530 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR04CA0191.apcprd04.prod.outlook.com (2603:1096:4:14::29) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|CH2PR10MB4360:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d4ea386-842a-478b-21b4-08dc0868f00d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XovLL27f3BqguW7LUusDPGDT9ncN0mieumT16toN3kgW/+hWt70s/ivBoR90Doe5q6Q8ruHJlBVdF5435qc0zaVCR2JINs5EK9ey1LhdtM39gH0OiZim9c82F2qgYtoiRB3EkpctlNlkZmOwYVAJF1N30/J1I0XihG54kCe4TXRYwPbFxQe4A7Dg6AwcmygeYZCBLQ6P5G0N5wpNTJYOo50x0K85lGrrzquemCVGRU0AUprV0mwv5/o5spO80au+tzO6pwz/aLIu04iLO4Xmt9IMRstZ02YSw79zv7ZxtbEhUIWziOqPbIZZH52T6klLWymxQoarkBK14Ri4kyZGeFP6KfiK3uSaIgoEMddSk5AgVDybd8xEa7h8/2+8pl8XWchsHRrHwKiHiStSOZHldUjtu5WeG+c/9cb7jQmP1N6KGRCdtE/kTOxDJdiUgeCVSHe4jDtX8ImUBN9U7EIhCUg+fNdDIR09CwN2twIFLaG2Onz0BPBENznYPnQhyU3kGrp0rhfdzvzU4m8+wA8X4MLklmK+Dk7G9Jv8ogkDpcs0qhYOcXNPjv9RoZAkqHgU X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(366004)(376002)(396003)(346002)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(4326008)(2616005)(26005)(44832011)(8676002)(8936002)(5660300002)(2906002)(4744005)(6486002)(6512007)(6506007)(6666004)(478600001)(66476007)(66556008)(66946007)(316002)(6916009)(41300700001)(38100700002)(36756003)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pgNQ0RVX4A7TgsC83F/mtvd+dmfdLHrUHPrSXxMsNRwW+2hGUtswHY9/j443CHAbMFO97Ju05X8hcC3hnZ+4qk6EITdwSFvfVFLj9SI+hzMvmvEpcpWvp1XLENY08MJJp4YIzoW10mdfG4vvnegbeltXvtM1pPU+inq/qGtKoiwI8y+12gFiEV8F5lSBVN9HJu2XzmCxsf95D7Tm5ZVh85isPQ/j1p/kvfzK58otBNsv+vQYZ3UhS2I4R68B2oQj7t58a39ndce92QNxfxu3C9h0SaqRejTnQHNsLrLUY/As4Zbto/vwyxQh0zfYR20kiH+jxjklbVMMdn6HaGUwJL3vqwn/cRA+bhl+/sIJ34u06/215fmasw8dB1O034+5W25G43FCgDraTExQvgfP6Xje3Kmem3WkRqwThwudMMH2pJb8H/xEGga3KyUzZKufxQI0aSdAx7TL9BF7Hxx6r62Lf4PsQj5N/0IB9DJbqa3ZqhCrPK2lq1nj0my4W/AgQq4F7bSmv8aQrvH8uA7T3u64VuSCTsbjY0tbF+YqOZO1BzH6EdIws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-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: czLeyHOIrcXrOhB4yAocaSGd1RysvzNSDh/8SQL/qyqpNCZBkXprylarAQnLAeCvRpWs03/ds6scMKRP8auHhK+wxEpg8AZiP3dMcrchC6Jmdz7zmybfb5B1Dgy/7Mu+937p9FMfkviz3RvrKyY+dlbNmOQV/cM/BwZaehgUJkjOAZYUaiU1/7C2JOysC89T8+1QgIhvve7ivhqZJYOp/3zTwY9NpfHfV/5hbhcfCpLNgxdTpqO4DUb7EeIuFcC1O8QQS9clHPSnkEQ/qA6OO2TQ7FqbM1L66iR3rfSHN9hI3QJwfWIw8JXt/C/PSWpLsTP6HWCusUnQWolvWEXODPn4PWtIrBJPxU/qCaFwBNZAdzfYjDHRjCydMUPS8xIwf3VDm63zrsicyRqQvyR3MI3P8PLGn9xGneGUqHsVwaFpUKrxSGtRegCHsnF2onkD+r9rWsFHOFst773A4P2KqYswukJnHUHeDr/H+0hg5tMv+xvHDWf8bhiLgDBOIcg2hAan5gXOXt52aZLvQbg51hNyEQpM0jQiDdTPKmZBCtFKIiDEhjrykBF0RIsRcFNh7kmLNuv43DjbFZoSRCB7ctVCJfeRBpNxkCAfdLXWkTc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d4ea386-842a-478b-21b4-08dc0868f00d X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 12:23:17.7776 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HoCYtCWaAIHV4HY4Vgs7vBxFcMWkB85wW1VurID/SHbimQzusVktVDdMAWIgLyWz88wFqu6C7p8h4O0PEXOPHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4360 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_04,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290098 X-Proofpoint-GUID: Tm7GWr5dL36MkL9jOKGFaFtYG2PfZv27 X-Proofpoint-ORIG-GUID: Tm7GWr5dL36MkL9jOKGFaFtYG2PfZv27 From: Johannes Thumshirn Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain --- common/btrfs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/btrfs b/common/btrfs index 9dd2a7f49e16..e1b29c613767 100644 --- a/common/btrfs +++ b/common/btrfs @@ -127,6 +127,16 @@ _require_btrfs_no_nodatacow() fi } +_require_btrfs_free_space_tree() +{ + _scratch_mkfs > /dev/null 2>&1 + if ! $BTRFS_UTIL_PROG inspect-internal dump-super $SCRATCH_DEV | \ + grep -q "FREE_SPACE_TREE" + then + _notrun "This test requires a free-space-tree" + fi +} + _check_btrfs_filesystem() { device=$1 From patchwork Fri Dec 29 11:01:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506435 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9955310A2B; Fri, 29 Dec 2023 11:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="HBJxC10t"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="I0CN9diD" Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT8OLlr017923; Fri, 29 Dec 2023 11:01:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=YDQqw5EPL65V+zNf06K5m8JXQWlDxOzeEKkb2ClMt7c=; b=HBJxC10tF0akw70RJ4N5MuXIKfj33VJxfdnkSYmUUWBlH/7BdWWtLEuzcTF9eOOcWFvL U3XUBGcyFREkSprd/N+tkUeIz1mxYUNB8n24xb67FnkB1M3DgGCAv66eTLYTE/hHc/7Q ChAoIGUSmSKFPzqjuCDD4DBgyfW8AncYXEgVHDabyNlbbnNEpPDE7GzZh663/7PVgDL0 Qx24pZMYVZvxCKsTz/G0ebKN1SQ/HYrmHiafJt/ucPuTuIajwOvmBKhnFICc4Fo73UzC 42xBnA4bttDCrcR5tfabTXDTRD+cZbnFnIeuVFe7LtIYH2zN8xo8d4W8BmDcPpt6gobR nw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5r3v7e9t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 11:01:57 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BTAPpMb008085; Fri, 29 Dec 2023 11:01:56 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2040.outbound.protection.outlook.com [104.47.57.40]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3v5p0ddqqp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 11:01:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iAJMIwVIk6YNa7iR17C/sm7Z+Bqo/wzT33CtGq8aWC546+0gJJKVLDYeHncQuDw6aTfXBiP4B++1CeKhTa04ccc4751vnTMy+yIWMD3tb8Kf7VQKozMG5belLgtIC6sR2rqhFcSPi6KkJDiYmD4m4blE92VULpfYrdmOwU10L0XPQ0Nd+F/H+CLKNa/fwRkYeZ7b6fPn4r8B/QhDKyPhwvwML7Q7OeTBx8VZ2fPWMOtv39+tZa3i7sCDassR6dA+p6M9PAB/CCN0WArlo0bqDau4oYdwnyuNK1T8xSQvsvOW9s1nmLf3bIAjFsDqTmgPt/nDJC7WG2Ojc737dGe0xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YDQqw5EPL65V+zNf06K5m8JXQWlDxOzeEKkb2ClMt7c=; b=R45DDHqgciVDKxGJhAhC18hrwHlHsaxifzYbQxoPfrCf+RlDM8Jc+3ddj6M3omyCsfZyUq/bvEkQqHP+Wg8VMuLGA1cKENOJ6dtlHX0Z2zgAAO3P0P9GyUCPFjE4eWlHszX9cXosUS/006daMSyaGb00JuXZ30WXLgcCHQziunVNc8dFw/yofgxOZnB4/OePYzFqWGFBy7EhlJADK8Hq3z/G2pwrlu5IlxG2QTzgWCWk1y+d0SmGL+yYOylRQB0UUbbTgTTHCpfYIheJyLczR+8A1AZQCTSDeoMu1ilyKeuwGaxXw0Mm7Nkhw3VwX+NNtZw5IFxM360j4wdUna8sWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YDQqw5EPL65V+zNf06K5m8JXQWlDxOzeEKkb2ClMt7c=; b=I0CN9diD84TRaNPgN19Z3LTs7BNmFanmzOzAxlri2g2Bfvpl6crH6gJ0bV4C3a8GtVOF6WCXl3u3WHVn4GmmyhdOrjb/BeFlVCabSnTcO5hn6KVv/D2EztdIlgX52m7iRjfE0cgO8/pexcOBDzGPhXiI+UTPsnVE73K8OhFENcU= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by DM4PR10MB7476.namprd10.prod.outlook.com (2603:10b6:8:17d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 11:01:54 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 11:01:54 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 05/10] common: add _filter_trailing_whitespace Date: Fri, 29 Dec 2023 16:31:48 +0530 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SGAP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::28) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|DM4PR10MB7476:EE_ X-MS-Office365-Filtering-Correlation-Id: 647da750-0c3a-4cbf-5a60-08dc085d9147 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VUsobeOn7IDMM8IjeJL6Te9Vr58Yecv+hSlgW6S81kvV1Po/DdJFBlN0Ta8/DjO2IYGbgl0QGKO0yedDvSS/CJGAEX8huzGuExKiSeX/RURK3K7kohZ0VrEGfTsH+t0C161pmORMLpVm4AGce7/JckHhiVJnEd2qVy0fPj0LdkO5wQtZlVlRxuO4KSvflBK6RH92Hz7IOIm9XNczaqvqK2HS/t6bnNDQUDU3iKvYiQj55Rp695alnXMmVZpm2vKnRfjBpLuPOZwcbDkgGHPrtEfYWl+lmcJWIh/dqxz/NuAsTWzmvkooGvriMCkDO3dpwqknQ36WLJU8Ydj4HdYwi794KGRrkV9Ej2SEjtPGVV3kdtb+GyTWQ8vUmmOJj6Ym9AfBXUnLoGYHe6weqMdpzW/wRGxjCy95W2jdJJg2Idx2PXICG91tDg3UIs1sY9YRFcoIMOpt+5NJ+c6NxMWmB8DwrS6+Xl/D0ZS3bnxB80zpR6TsKEK2OCSwwRwrt9PhoB8Ae63dE2U1DEn+d1n2xqsqbzBMY80VVSj2X8zWsB3a/r5VoQ5RblT0VyY+U2h3 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(346002)(376002)(39860400002)(136003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(6506007)(6512007)(6666004)(66476007)(66556008)(6916009)(6486002)(316002)(66946007)(478600001)(4326008)(8936002)(8676002)(44832011)(450100002)(5660300002)(86362001)(36756003)(26005)(38100700002)(2616005)(2906002)(4744005)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ACx/wvugMROGZG+mAZJrjcI+PCFsZscjEOz3IaRo+AnQqTTlxCiXF3ath8qKah3i9tUMepdTgK74pJTlJ8XBxEZovdCZ6QZYM46mg7n4maTPM2Y23FUODotXaEW2IXu9XGISB7kCjhd63ZEOJs8ixppdMPi2sctryvgu2RMexhiGGMeAsiuuc+ncw8geFgwQ5QaoToNrMQJqTmpdj2j50qeGYL+qMR3Q+655YUQsbes1rl7Rdx4gkFb3V0Rhu7HN4z4p4Jt+inedKoCR3ZI7r7E8lXlAKg3VKNkUjg80pjysnDa4zM6JDUkdt94cx0JSY2qxWL2r4cQMbYn6pMiJRAi/xj/EeZiAKHNuSQ80C5K18BUavhNblbh4M4sikf3FpPL/DD3h1XLlQ2JM0RToFKhoDeY47Nev3m+Wz35F+Af+EIDidcRPnGM+UeuixNbgVmwG1U4G1Aner+/J8kjLdMU0/T/JXQWVJExasZaDLO22K9s80+RRDJc2rdHcQ91cyb9mERsRyO/GPZjFB6Y7260anjxRW8JldEMrmM2rdhb9Hj2hHx0KiaWsDIw12NnDsrrmAVcRj4+ZpEBPV38L0QxLVm/7HrkROxC9n5m+wHBVkBfCyzw5qmmSdG5kCnT6EA4UCVp4RP9qK9r9tYyWeMnbUqPS9D4M+Df2A5LQ4eHeV7wYwmiFv9SUitP4V9krgv+g5NOqpXBieYQ275iiR9qT4jA/a0/0JqxEXVtTD6nYVQnDU8r83ZVpMtAfIUu1QrRK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xDUKu0XPUnC68evmhiZsJX7cBy9VKgEpxf5Mgitl9NDL93sXvh0IhGFDQMx7VOPGrC2m6BmnGG1Ow95eZ0el2BHZ+B8If9ry3sI7Cd/dUPgfwMNj7ED8CSMn2+uDJOWGo3a8xHtD/HQKGu2YgLo62Xh20yeEOABTujyuzSi6EaXrPJGiI8Q5JChSQjAJtgO97w/Gcsh5F7Hkp1riZ0EkVYbOjKyumEzCa8XmkD6lEz3g19EWg7eeYVFSPiJe0tc1dNyCB9aSpQpjGeFHNmozx1z678iD42tfiUAw8Sh3Dtk1/se4RXkoO74EbP4NxojH8ubrkSn6fEwd/e62d99EyjY5kJ0udTQryCCfCl03u/jttSsNnjjfU0SGgCMTBo3/BcAGg3A7lo7Rscz1Idq2tsm+wqsajdmRNAfHXiMLMcH4o9dDt7yCg2U0Mgh2YE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 647da750-0c3a-4cbf-5a60-08dc085d9147 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 11:01:54.4385 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uwueNnxHgEA30lxZoV5P8kn6uJsUfZN7qRC01ij+6oakk+3FQ1GVMW3vy4akMk/ClyT0Gcr3PhPLa1HTDmI6rA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7476 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_02,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 adultscore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290087 X-Proofpoint-GUID: Z6MvBnwi3GodGX-cHFJhHcft5lqw-QEF X-Proofpoint-ORIG-GUID: Z6MvBnwi3GodGX-cHFJhHcft5lqw-QEF The command 'btrfs inspect-internal dump-tree -t raid_stripe' introduces trailing whitespace in its output. Apply a filter to remove it. Used in btrfs/30[4-8][.out]. Signed-off-by: Anand Jain --- common/filter | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/filter b/common/filter index 509ee95039ac..016d213b8bee 100644 --- a/common/filter +++ b/common/filter @@ -651,5 +651,10 @@ _filter_bash() sed -e "s/^bash: line 1: /bash: /" } +_filter_trailing_whitespace() +{ + sed -e "s/ $//" +} + # make sure this script returns success /bin/true From patchwork Fri Dec 29 12:22:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506471 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECF5011C88; Fri, 29 Dec 2023 12:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="ca/HkPcU"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="vF2Ajh//" Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT8OLqD017923; Fri, 29 Dec 2023 12:23:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=oRc1cYCH3nlfYBThCyXSPFVwjEBEiL0o7BdL1xWbeog=; b=ca/HkPcU/kKu0jYtVz738bImDjVC9fyOs/O6ZFzVycxu2nlV8Pc06ogUNQSbyVVo/jya bGuxG9swDI5AL0IuIQDgwwYbNyvt7uCOCyME/EMyO2Y/+hxksb78s7ug7iweYUo8jZ2A HGBft7HfVMn99O5wai4ggJ/n6B0gBADctki+jOcZLRiixQSRfUvrmmPvCKdQ1RxPCq7h nPZwlTjKfy+NtxH4Qx5N/VPYHrvkb7BCFOgMGyeiDyl1v8J3/dlta8NrRKJXe2G6X15T 4CYNY50SOjZMq17Cus7kA8+p6zOCd9M8wDX4dOBKO3ortuZjDz5UzO3OwFpYbQ8eDW5t wQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5r3v7gjs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:29 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BTBp7rL026866; Fri, 29 Dec 2023 12:23:28 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3v5p0d86jx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FlCH5bHBWLwrP5h1aY2nAOL3cZiPi7IUmLTv297FUWXIq19nemaaDAQBPL2oM4zbaeWOQ2aLnzMdfPNWLaWoZvp0m6tq5JCI3+slzZkCzZj3usyKICPq8Jt9FVFZygtAUlD22/I1GZFrLiGC7AzcMdQnPb57bA5+8mThawGX8ixTulgDTWXV0TjoWEhJCKeySBwTQkbkZG6yUQIbYPZTfjnfqZca583QYo67uHvNfKD2MB6B5EeR7f+UN3B7vB/7Zs9aiksMdqJigYdJDMOCu0Oj8ty/00cFqZXCTQI0on3xUiZJdiPTZLiLabfu4fsoCuei64hlR/dbkpc8ZuCb0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oRc1cYCH3nlfYBThCyXSPFVwjEBEiL0o7BdL1xWbeog=; b=cF0wlfXGUq51hlbqifeNpqGdyHDOIS6efBn6XBDKDn/uLk+MG6QeZt/aEmwSpuZwUcAD3LNKxMI7CmiWjo071UKnDn6Tb+NFGT96YNmp/ISMZpaqS71REphtsBS/C1urjFrYLlzq7uTfXRcjq8h6erAqNZbdpQaHFwuCudfqlKJ+vkwodfoU9K1j7xXkwI0vFvevaT0aG0SWqD6jz57dJP69Nt4fmNUFt9BW90rsH4NHfi1i2HtKfhP0GLMpxIAV5pK9yssHZb3U9IpBrkc+wAR4i5tXlputrxUze6miLFY2xmcoGw4O8q3xmy9ET0MU4YkpRsRiy4yTIu5biUJxYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oRc1cYCH3nlfYBThCyXSPFVwjEBEiL0o7BdL1xWbeog=; b=vF2Ajh//kRM3iuQX7lsZYmDqIDR8raOeo1C8urt0jFp8ro1wGY/xyZ8V5oVMmIoXUI07S2+K+pRfC4AE/Oz3zUMkt7n2bLIQxIsQ6oRgdlCBa59uK3DDHP/qdW3DvOigO8f4kxKCrAtheB9/RVutoBXpg6KizCCgM8FEDJzG7Io= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by CH2PR10MB4360.namprd10.prod.outlook.com (2603:10b6:610:ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 12:23:26 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 12:23:26 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com Subject: [PATCH v7 06/10] btrfs: add fstest for stripe-tree metadata with 4k write Date: Fri, 29 Dec 2023 17:52:46 +0530 Message-Id: <217d0635de9a5209fb2dce85f29e63fc91bece55.1703838752.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR01CA0180.apcprd01.prod.exchangelabs.com (2603:1096:4:28::36) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|CH2PR10MB4360:EE_ X-MS-Office365-Filtering-Correlation-Id: 7e3131ac-e726-435d-fab7-08dc0868f516 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kDoNICmHcNSYu5qdZZypZljSafE3D4RqUQ9O423Aw9XAxZqZwvkvjLKjacHkPU0RRLTWjfME8nWmC6JglSzwnfxKQ20TbLAUSJfw9h2sryX3+BCWJC9pdv4bwXv9aWnfwc72OdxHcHRSay3+1wtGDjt4Jf+w045wJ2sT0Rzxdo8pn0W66BcMs9AtcFzOU+CJeLIr0paV4cxM3DqwWOl3izGsLWvSnrj4JgY9bjzEBfGTEjUDljx0EofzK6yFIA5Cq4hkuPgY1tNxU/yHXz/xKndyud2pDpaWo8hNhhEsiYZIZC6Afq0by2oGpoLDmyZNJxYjiuDm7Z3MmBtobW5koEis3yHGHVvP4eq9HS/fQMSPs3/bRdBdFfHlnG8I2q/aaj8zV2P1I5bwTaF2UY7wfbM9qcpI1+SjCWiNPCiikfAFFEFwC73k+FaeoV9JXUk+cBwbqm8iYt70g760g9zAEF+L8YBS9Dt/22q3QamCFB95Gh1/3wonAcwXCbTUDvbpiGroWSuE2O1MerMRfHxIl3UYXBNCFWQ78Buq7rwOeUP9TClAfbDqcItz09Z9u0OaMgwqKhcOq5bdEj755WbYIiXcPqW0SCToHgOAN+hn6KU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(366004)(376002)(396003)(346002)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(4326008)(2616005)(26005)(44832011)(8676002)(8936002)(5660300002)(2906002)(6486002)(6512007)(6506007)(6666004)(478600001)(66476007)(66556008)(66946007)(316002)(6916009)(41300700001)(38100700002)(36756003)(86362001)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XZEc0P9JGNwHmaPo8NxMxIWJB9TM2OI/GhupkuEKN3hTOeJgw4+Xh8tUta0d0ZsbYvvIPM6ouy+laD8Xqire5q1B+ozn/hsxmgx3Ca2eLoaOl50ffoG3x9PV2Agb/TtbetPMmMG1LUiV8nQpzhSxbs2lZ+0hDHTf8uEWIhVF20KRbWs/NbDDeKKqrOkZZuioHoE/Kpzl4LgCugWxC4mkj+1/mhvNzvs6z85S7mnuvxbgGtnkXBqfQVVVaFhkRr1/njIoRZlZgKkkrmstywWCjkn3oFR8qx+bcbj6576vHTYq2EoFw57Uv2YbMpaY+FR/LfJkvmoRH9YMPWBDAF/vM69Yp2WoCbkjMwVkVZCCXSqBmO7PXxs7xELe8BisDZZaZS0lG1TidL9jZuNILIH4q+H4xzfE+smqC7d5kvvzahXb3LVSGWLBySWBQErGZ2G1PKvJyEA2fokorY/eSUwF0hXUZzMRnsqq/zVV63pdWp0giqlnpSZQAx1gbaTGnobJDMCpefKg17Qb1faEe08pWx/DGUzD7zmTdjF/Z081gBGMBavkY+d15fswGF0L0wuQZAwGljEcVq8AJbSB8hh+tvW+Y3GYydwW2hTeJnWQr18Q14nwSl9PLbh2gq0geNGmckUKMk8tZNfpm+AYGTm0EHTCvh9DkrR6m8uWW8RJDt1jlcRjzdib2VeFmO7YN26C49/I2UIR/cemQZ26DYHMhZrx0XSHmSJTPwmLjf8XOvqjorTzBGU4RVisppSu0fI0D+RXFnnH2uTUKjUfOxpC8026RWYCeklDxjvHV580gxzIYS0zLxD1S/JXu+QkM5Pff7X9y3o1ApdaC18BBCvxYzn/YDfDVmInfjHnflVeODORgg56fEpZnN4F4bm8tkrpGOQ8BHBwNB9Y7XBNRShKYkabwoQlBKvoTS0c2DL6rpicTcZrerW8jrP7sxwBKWXAgkOJYRqd+TWijMc+HrCWhu691FhtxMpZ9Xcla/4HbeWRNzMCtS5b2kcj7WHJJIrbNwvhOi8fhw63aFNgJ3ckTOg/NKbhKgvOlJLR527CcFW1RkdZG9SiTO+CKslpRsuBiS8jWqqN9+v3xtvSaQc6A5jMcaH4WH/0xhXJSNjzxAAN4ulwumhavSTwu15smngB4EHOtOq2DjA/o7tOiSiEaetiDQHmN0fJGa5G70e0yYKEOI6pFx91j7kg+OoXzeNf2m6uPiAMiPkidKq4fWH2QBQejkTIDlE32ZP+eD3JyvabrRH8SXtOkIQt7d6GZaQvjfQuZWkfJD4vcgL++UY6+XM6wGDj/nA7i5n27JyCLBIaDKYxrlBeaxhHHS+6AdFYpjQC6usdP2y1QsYMy5thKGx2P1r7z/iHrKTPNRJaw3VoP3Lsbzke7W+XV+p+lYRiGS2Yu0lUpY76alVq9kct0N4YnouWYVooWvkoS0OolIlhSlHxekrwlDIbtENOflBaXq7/+4jjX82+yzleN9x6X0f0Lo6hwNYIj5QqspN2VdRfb8YzgSb3CR37CmbF/6QjC94hAUdDEYYtn+0oKHI4ucq2vUTVwu99iTifj11vn320FCTIXlMyXOpWmd1p+IMe X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ZQ7mRdHV2mbKELEus6nznMqJuJtbA3wV3XmblEGdZbspY6LZDksq1tf3RNYkTtUOF86t9RALl1o9tssiiFwB78NSMw/CEKR0AXFOjx/E/YTFSxWedsEHrzgHfet7Q+26C8Rcqi+wa5OmWCaoPQTnJ2VU9H4JIMu6iE64TwhajH2LgS1WZywdcefvyRbxdWbHKuTcIkVKCv2wywNja1XEmaT1LixFCanulmVU5MntkSJA1PQaAsL99d5BiDqoBR+usjDCISft8BYkTz3THIqmBY3kDpOjCpF+0l4pXQWHL87CdMzbJ49FiY/+ReObTJkdnwBhJA4tFIsj3OEGMcK/FSjDPD8H8wmca0NlUyAERn3P9zG/CJwasXDWW2RdtYovyfbayexo8jCXzAOji/ARpffJszu/x8xMryCwbtdHclNGaNIpVoSkn8Umhz6WQA2cQ+YubSzBhFZh9Qys9ncUQfQc2EToOILgkX/ro3TN6UyxLmTeW8qZRuwYQxt8cin1zuxgUtnUv++Dr3BMlJaa9P/YWxjpaM07N7pUIfnDFrEtQky3+7rh/9XIAWNIErMqZt7HmGa3c55EFIWCAe9r3fPKrJl2tEKgV99vhBC85f4= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e3131ac-e726-435d-fab7-08dc0868f516 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 12:23:26.4072 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CUluicxC+rDyMvBy1GNEeRTS2Bfzi9ibCPXzw05+YJZIEKeWk+b3fL8Whe6Kw56V9NUGj5zmXFzNfOpKPNmvjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4360 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_04,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290098 X-Proofpoint-GUID: jKlV8PY4M3fX5iCNYq_8gejYpTHyRilz X-Proofpoint-ORIG-GUID: jKlV8PY4M3fX5iCNYq_8gejYpTHyRilz From: Johannes Thumshirn Test a simple 4k write on all RAID profiles currently supported with the raid-stripe-tree. Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain [Fixed the test statement and trailing white space in the .out file.] --- tests/btrfs/304 | 59 +++++++++++++++++++++++++++++++++++++++++++++ tests/btrfs/304.out | 58 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100755 tests/btrfs/304 create mode 100644 tests/btrfs/304.out diff --git a/tests/btrfs/304 b/tests/btrfs/304 new file mode 100755 index 000000000000..186fa1646e48 --- /dev/null +++ b/tests/btrfs/304 @@ -0,0 +1,59 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2023 Western Digital Cooperation. All Rights Reserved. +# +# FS QA Test 304 +# +# Test on-disk layout of RAID Stripe Tree Metadata writing 4k to a new file on +# a pristine file system. +# +. ./common/preamble +_begin_fstest auto quick raid remount volume raid-stripe-tree + +. ./common/filter +. ./common/filter.btrfs + +_supported_fs btrfs +_require_btrfs_command inspect-internal dump-tree +_require_btrfs_mkfs_feature "raid-stripe-tree" +_require_scratch_dev_pool 4 +_require_btrfs_fs_feature "raid_stripe_tree" +_require_btrfs_fs_feature "free_space_tree" +_require_btrfs_free_space_tree +_require_btrfs_no_compress + +test $(_get_page_size) -eq 4096 || _notrun "this tests requires 4k pagesize" + +test_4k_write() +{ + local profile=$1 + local ndevs=$2 + + _scratch_dev_pool_get $ndevs + + echo "==== Testing $profile ====" + _scratch_pool_mkfs -d $profile -m $profile -O raid-stripe-tree + _scratch_mount + + $XFS_IO_PROG -fc "pwrite 0 4k" "$SCRATCH_MNT/foo" | _filter_xfs_io + + _scratch_cycle_mount + md5sum "$SCRATCH_MNT/foo" | _filter_scratch + + _scratch_unmount + + $BTRFS_UTIL_PROG inspect-internal dump-tree -t raid_stripe $SCRATCH_DEV_POOL |\ + _filter_trailing_whitespace |\ + _filter_btrfs_version | _filter_stripe_tree + + _scratch_dev_pool_put +} + +echo "= Test basic 4k write =" +test_4k_write raid0 2 +test_4k_write raid1 2 +test_4k_write raid10 4 + +# success, all done +status=0 +exit diff --git a/tests/btrfs/304.out b/tests/btrfs/304.out new file mode 100644 index 000000000000..39f56f32274d --- /dev/null +++ b/tests/btrfs/304.out @@ -0,0 +1,58 @@ +QA output created by 304 += Test basic 4k write = +==== Testing raid0 ==== +wrote 4096/4096 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +5fed275e7617a806f94c173746a2a723 SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 1 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid1 ==== +wrote 4096/4096 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +5fed275e7617a806f94c173746a2a723 SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 40 + encoding: RAID1 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid10 ==== +wrote 4096/4096 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +5fed275e7617a806f94c173746a2a723 SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid From patchwork Fri Dec 29 12:22:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506472 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11FCB11C9E; Fri, 29 Dec 2023 12:23:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="ZMwo2rtk"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="cg0PbvOO" Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT8OY1R018015; Fri, 29 Dec 2023 12:23:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=qJDUIDtVl/OgUl+0UX+qwkgkaLKYgwxwapR8c//w7w0=; b=ZMwo2rtkzj5Heox1dgSIa7wP/TAcBzDuN2I96VB1KkMgRkS0zhDSdnZUWo/9gVPC6T1C if0RrhVKZUZ7Jb3rdZm49z5i7CRK6Ty4JUH/f2lHcddzyPRDAQOR6HiY4Y3Z9cBbkTBy oIfySeYfin4T/yF2oKDaj/6Bw419Mz4XfTD3Y8Sv+I2noZNn++O2SDSxP0g99K6W0/ZW V0rKBclhlcxLbZ6ZNkd6tOMV8GuNJTiPYT6CU5a2W/KHeyDzS0+GBEhWB/w9t9BYdPgm CSTqK6MG7FMqe7PuoPqMELFyheXEPso87PbcV7cXjkg2E1S0Tp334atFqZgqbIGRXzjH 9A== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5r3v7gjt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:34 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BTBKYB0029970; Fri, 29 Dec 2023 12:23:33 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3v6a965mny-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gycpjq6VzFEM63GSXl2BybV23vGhfaJrs60EYxPPIXigJkZFOhyK/t71wA13IhxeuQEKdgbIuRqfE6aWgYCKtDOdYfBnZV8v24kmY8gADre05xkt+fpUZypBjJDnak3WzDGS9TD1FmHOdOIve9ClUpNo3Gw37ueZNSFjOtHlPEJL1Yl3icRLEaT4HPwVd9xqYiWLynsn4s4H+BCxnyij6yDUqqEuKMdanoSb3bTx+tBCeuaek6i0+6bS6U6xNaREhW7G0oIeWV8uTTQqy0lrr3VsZnB+7BfULM44cmmcrWWHdUlEahvW6+KCvyAMvoNOapBaeWk/u4Ky8rqS4qof2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qJDUIDtVl/OgUl+0UX+qwkgkaLKYgwxwapR8c//w7w0=; b=eJ9kFVm7pBPXwblfugUQTY6kkqDOFWROHj2cvK89/f8aSuTLvbd0sWnQshmhymGqD0//9P63MReW8sOkeHDM73Xurp7Cal5EQvX7vzdGmqqEbePuljf8RBylQRDvYXxFqZ3QtV0UUW0gwj6WBN343ndyYrH/XVm0UFaudDdonM9dCBNFJsAVn3kWkcxPWJi4uhfO5fKd8z/OxVhgcD2CZgg41aFTJAXt1dOfLlifnXuOjBr504ps4r4UDe3qtC6vN+SEkCWdxidzG0i7uP1WOyxwv4wQoLIn8h46ootmYgzBTdaoDIdyxnHvTUHV2rB4PDK2d82u6KD73KU1UwxWmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qJDUIDtVl/OgUl+0UX+qwkgkaLKYgwxwapR8c//w7w0=; b=cg0PbvOOJw+pP51tPYHMC0r8DYuE4lJDqtxq1wuVCZc4bNN7y99uEgrVz/O2Kkn21wa51DuwgE0AZ4cHiWjB9BNoOHiNbjE0eNapP9yWAZ6fVMqkE4wI1hfpoirwfd1CUugDiT1QWPq1TDnTnDv0pA483epe1PTEMNBGFM1DLok= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by CH2PR10MB4360.namprd10.prod.outlook.com (2603:10b6:610:ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 12:23:31 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 12:23:31 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com Subject: [PATCH v7 07/10] btrfs: add fstest for 8k write spanning two stripes on raid-stripe-tree Date: Fri, 29 Dec 2023 17:52:47 +0530 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR01CA0123.apcprd01.prod.exchangelabs.com (2603:1096:4:40::27) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|CH2PR10MB4360:EE_ X-MS-Office365-Filtering-Correlation-Id: e98f8e4f-7b8f-4159-8695-08dc0868f84d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uj10ut/UqV/Bja0V6qTUqR1Q7Mcgoh93kRaTempZc/NioSrgxJJ71hJ0UsiEmccEJyh5X2+XVDAnKdnL3Ip6Fs8iJIhSUnUKcGVZ1dSHaML4Q3zTTTZD9jJDNhpfzy/6M3Aa/LbxA7vrALjJAVUMc7pgyvjPb6MRzbiRQW/vLiP8t2izpw2lQcWfJ1q1lxoBfUwrE80O2KGL1xmbKpuXx9VWoEI/UeAcmimRYRBUkf+z0SCdFsIOtbbG+mLeO2xgUQsxIjffp543SRobDx8rslUnRV3ws/dyz6dZy2f85mdIZNtRML+b8K2JtPXjKQr1D5iUiFe3VGySeuAeNAjC4LTogGwelBk7KWZ8LJ9EofyXM5JdJzTJHb//EoXfYRGIGBhi/OgWiEOQmgsbkzCLAvdSOe4tljXL4X0PWmRnAmykIzjGRVuEyA+kLly7fd6bm17tP+0YpjSKang8Cn+TFWT2nO66WXpd4YsWZTsSGCH7KCGDW+yB1nfFBa5ZPkTy06QaYbbp0T+PeVOj7DmEmYaguIba8yxWoE5lha+KZq6ByYvrrBpd+0HTAd597VFgXoP9PTzy+ytfwNkMIXrdybBX4UsmFgeGjU5MeKGe+dg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(366004)(376002)(396003)(346002)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(4326008)(2616005)(26005)(44832011)(8676002)(8936002)(5660300002)(2906002)(6486002)(6512007)(6506007)(6666004)(478600001)(66476007)(66556008)(66946007)(316002)(6916009)(41300700001)(38100700002)(36756003)(86362001)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +qd1XOQBw8BuHIn1/5eadbn09H/irgXd146gl+9Wp06q1BalUFPAMHPWB0PDM2Gth+ZQ5WFukediQ2glKLI5KBmNpFdt2wzUCAUO+bhWPLkvOMk20aJQ/TuAm2rU4tFmgkTjdQ7SghkYPLSnyvaywYHS/yC7eMTafc+0Mu0SiPag90F7gAtsHdWJ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z+P+dvn4nYK2uAojMFWi1uXnDcm5kreiPdUPe7AdWXlivQwhpdfgtQTPaLK3wICULi6mrce5JzQGh1WVjSetp7Fiss6pU0Ue6Mm2fuRDm1+kxEd9y6gIzd+Qph3I8ijDhHU8iYmLziL4fnRyu1oNLhg7DnWgSi++RAKq7KJahGIQg2C3DsVlbFneCCGTGKNuClfytiS/CJJoxgj7iiSVompP/vg1DQQplINGmxFghjP4P50uFmoNrqE6vRLvYdhGsEQcOqaHe/eqiswPNy4Dj2Dr4JkfTK1QvFr8zI9+TMqtJkR5FkQXYRtEJrc4CcPYUNboJOe1QZl/HD X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Bwr6F3/FzGTvWrzenBx39pC8l3q4Gh29s2eKOcDyHwaEnZB5v9q9VyYHF7QFKexmlF/3Ld3cp95/2SBvnRQhL6BGHOGqCnXXHmNSDJr11otVeV3E2mLA1JeSqVKkGNkbyjTpCHL5zj0oO5Y+sh+HsLc6fEAaO+Rs1Q9Ra/GTV9hu1yJy8agtU4gV2JvmkFjw2Ca3HwRtqgZxJvPvZyz7iCjfBobmY6p5VTHNMBb0Kwguc6z7Dq37ApsQ7NRHAt3tJChL/UTjMa1xlFF7DXHBX8vR65e/cGUp/bjWV7NQGh2WlQcsO/6aZLitz1HqgEv9iBRKpQ7RrRvyrYQegMKsYWzSH0FbsK95hAJXe6UrFKylh1OEXoGWVrZc+6qjlhN/HR+EQfyh6onAW9G0/NlGDCl78Vwak0BRWTxslpEsJkYXpNLEFOjE5zrmBD8no0iPCcnuhX8NQ6fek/oGHQa/r0i4JLbfio6WIL+aOhrX/56atPvdehV20AfNsGHHfrZHx1u6dC095ADT6QylWrwwSN4oRadsir6GsO102IOogooBkIGJruWJVx91qDWjoQNvEwelwP7FMbpcdoQbVEQ9A0MsqJE4ua3koCYL3uzJuTg= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e98f8e4f-7b8f-4159-8695-08dc0868f84d X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 12:23:31.7829 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lGzUDyR0VLBaOsrYOoXKqRHKdwPowwD3CI6e+eY64LJ0IIKFLRD82wU8jvLLv973JMwPutsYD8IPB/lZjIoiQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4360 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_04,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 spamscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290098 X-Proofpoint-GUID: KGXXxCGEIZM0ywRTtA6gVe3jiww1-Pdx X-Proofpoint-ORIG-GUID: KGXXxCGEIZM0ywRTtA6gVe3jiww1-Pdx From: Johannes Thumshirn Add a test-case writing 8k to a raid-stripe-tree formatted filesystem with one stripe pre-filled to 60k so the 8k are split into a 4k write finishing stripe 1 and a 4k write starting the next stripe. Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain [Fixed the test statement and trailing white space in the .out file.] --- tests/btrfs/305 | 64 +++++++++++++++++++++++++++++++++++ tests/btrfs/305.out | 82 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100755 tests/btrfs/305 create mode 100644 tests/btrfs/305.out diff --git a/tests/btrfs/305 b/tests/btrfs/305 new file mode 100755 index 000000000000..f3bf0faa414c --- /dev/null +++ b/tests/btrfs/305 @@ -0,0 +1,64 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2023 Western Digital Cooperation. All Rights Reserved. +# +# FS QA Test 305 +# +# Test on-disk layout of RAID Stripe Tree Metadata by writing 8k to a new file +# with a filesystem prepropulated, so that 4k of the write are written to the +# 1st stripe and 4k start a new stripe. +# +. ./common/preamble +_begin_fstest auto quick raid remount volume raid-stripe-tree + +. ./common/filter +. ./common/filter.btrfs + +_supported_fs btrfs +_require_btrfs_command inspect-internal dump-tree +_require_btrfs_mkfs_feature "raid-stripe-tree" +_require_scratch_dev_pool 4 +_require_btrfs_fs_feature "raid_stripe_tree" +_require_btrfs_fs_feature "free_space_tree" +_require_btrfs_free_space_tree +_require_btrfs_no_compress + +test $(_get_page_size) -eq 4096 || _notrun "this tests requires 4k pagesize" + +test_8k_new_stripe() +{ + local profile=$1 + local ndevs=$2 + + _scratch_dev_pool_get $ndevs + + echo "==== Testing $profile ====" + _scratch_pool_mkfs -d $profile -m $profile -O raid-stripe-tree + _scratch_mount + + # Fill the first stripe up to 64k - 4k + $XFS_IO_PROG -fc "pwrite 0 60k" -c fsync "$SCRATCH_MNT/bar" | _filter_xfs_io + + # The actual 8k write + $XFS_IO_PROG -fc "pwrite 0 8k" "$SCRATCH_MNT/foo" | _filter_xfs_io + + _scratch_cycle_mount + md5sum "$SCRATCH_MNT/foo" | _filter_scratch + + _scratch_unmount + + $BTRFS_UTIL_PROG inspect-internal dump-tree -t raid_stripe $SCRATCH_DEV_POOL |\ + _filter_trailing_whitespace |\ + _filter_btrfs_version | _filter_stripe_tree + + _scratch_dev_pool_put +} + +echo "= Test 8k write to a new file so that 4k start a new stripe =" +test_8k_new_stripe raid0 2 +test_8k_new_stripe raid1 2 +test_8k_new_stripe raid10 4 + +# success, all done +status=0 +exit diff --git a/tests/btrfs/305.out b/tests/btrfs/305.out new file mode 100644 index 000000000000..7090626c3036 --- /dev/null +++ b/tests/btrfs/305.out @@ -0,0 +1,82 @@ +QA output created by 305 += Test 8k write to a new file so that 4k start a new stripe = +==== Testing raid0 ==== +wrote 61440/61440 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 8192/8192 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +9d3940adb41dd525e008a847e01b15f4 SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 61440) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 1 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 1 physical XXXXXXXXX + item 2 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid1 ==== +wrote 61440/61440 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 8192/8192 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +9d3940adb41dd525e008a847e01b15f4 SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 61440) itemoff XXXXX itemsize 40 + encoding: RAID1 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 8192) itemoff XXXXX itemsize 40 + encoding: RAID1 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid10 ==== +wrote 61440/61440 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 8192/8192 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +9d3940adb41dd525e008a847e01b15f4 SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 61440) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 2 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 3 physical XXXXXXXXX + stripe 1 devid 4 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid From patchwork Fri Dec 29 12:22:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506473 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34A97111BF; Fri, 29 Dec 2023 12:23:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="HyXP5uHH"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="ENFc5oMb" Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT8PDcQ014684; Fri, 29 Dec 2023 12:23:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=cSGPApT3bHxbNN17i3Fmog/oBoThzzlaNwnuqIJC2yg=; b=HyXP5uHHbEKlu4v/L5HlhG8/CXP1PG4Au44GbdA9qkEvTQd9kQDQCa4N/a9geWMeT+t/ Uwh/oVNb/drLYa3ibEcxtjg8BlXdRFCMgRI54grCj453fIYNop2Ru1ZoYC6aGGnLg14j 1lAhNv6oIvAYlwTUzMf3py6r2oJqJhvAs52rVMy/NBHMMSk2rnJOc8jYT6OyM2kL4NAf SaGKxjmgoVJnLs+xgH5t/zXZwuj5IjKqFBwKNE94nfbuebdfDQDpGp2kgb7mbH7ZgK9g Dhc/k0BU8LWXw1vFrpP6rPwAhDK8sDNek1INX8dq4gqsGotF0j8QU6ZrQciwMKJ1mnDr Ag== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5pfcfm7k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:38 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BTBdj66022966; Fri, 29 Dec 2023 12:23:37 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3v6a965mq5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ejjK6E75geqsIKLnwK32Qe7Ds6Y8UN3U8vPc7sJVDZjqGISUQrE0F2+6UV4Qt8nIGXH+vrYrUaIcnYw9VGWmfv+7i/CMhT5h7xRfgrkvqw28p/bwCL7Ak89KFEM7diLfbMiDEYF2m8IzcVBM2vankzthmgp+F0aGwH6Ds3EZk41iwOLP/mHQKrh4LI2E5tKtt9vpSgkGmOaVg87p7SzrgJLA/SE1/WT1mk7ptJ9DTaxQeV6Amq3qp79oBHGuK/ppHySfnQ99PVWETnfQTT00s5ggt8xOObZaI7HCK4Uk2zjsWZEPVmztQsxSU+/y5GxD6tW4eK5yfpAG/9dUaK9Nyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cSGPApT3bHxbNN17i3Fmog/oBoThzzlaNwnuqIJC2yg=; b=fX3SbUB8MA3AV8x8nGhdRobr0+fAHPiCqDEl+qBnhdO2AczolFQJRVUzBB8Cw6wkOb3mXpB25tJ1bq+FEMOdFjt++Kqnfm0287aE4Cbhc//hc6xlzu6KI9xKEZQrLGsUxUubSANIjf2zfe7RDmvp06Zb/HNPsdrkZBu9BocS4vYULxWIliF5gvdwLlVulKyhyXAPO6GsFz7ifcBSJmibXjFSQbp7Gr1GQERTbsxy2232zOQEEvGbD7w8tIAkzZmeMCIcYElLYoPwHNq9+MautzxUbIlIqUT3XA58BjmlPbUaEQ4diw7VhzYGSbayKqqhMnsgp2KGvA2Bowhe+XEwuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cSGPApT3bHxbNN17i3Fmog/oBoThzzlaNwnuqIJC2yg=; b=ENFc5oMb1zy0jjDINFK+IgQM+eTs+dqDqtLstbt2no/htfx3DPNcoqyfCKv1b798iGlBnsbM1s573l4f0wCqTuXVAXM9mi2XWQpzdk7bnaAmWYNW5xVQEhhfS8EcLz/zPgkmtZVu/xxuMILQHsE+Xz9+a8q3rPb1dUFsdwhDl9A= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by CH2PR10MB4360.namprd10.prod.outlook.com (2603:10b6:610:ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 12:23:35 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 12:23:35 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com Subject: [PATCH v7 08/10] btrfs: add fstest for writing to a file at an offset with RST Date: Fri, 29 Dec 2023 17:52:48 +0530 Message-Id: <128d200f1e8f89b6a088ecd1bc04818833a8307f.1703838752.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG3P274CA0019.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::31) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|CH2PR10MB4360:EE_ X-MS-Office365-Filtering-Correlation-Id: 279ee3e4-ed8d-438b-6bab-08dc0868fa9a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cTv2t8P0Mhh7OnquzvsCaSL3ko2rIMxLPvOFKUFnVXrX/iEPduF114WTeYL6jD4EqAus+morpPXAbNGHWySWy3qH7QEWgZj4QKtOPSoCxntcPtE3lSy+c4ENaV2JF96lmuLFNFIgfzHrDELQvXcCEoFH4mEqvX6Kycb9LUHrbOABfYwGTSZ2ycYunzrjD9gtmxTMWDTuE1NOyiuWNU/ybOYLVDjTBD7OK5HJN0mT3tGsuW8ffboSQ1UmAru7P4uI75eXmSIZ0oAseGrqI7TYEBVeJW4gppneqL14kYaodQ1DtMlWvCxVfDs0o0hoXDvccBT/w0lAqKi2dLL4Sfu1+wF4g1fniSbkxiJFkPccKlBH2uttOxbj321ebQc2eNAQKWlH36U7la5/OHGn0HFvRVbH4jG4Ld7mcaQ5GIGQwl4L0CgPBnHFaGMkV6TginDhHKM2CPa21xW9xHjgX9ICaY5fOosy05woVMc2wDM7wAwLUswUtWxM+8i1Ih2fOA7SmJyDy4I/klf5TXrmCB3o9pEXDFoZR0Y0VLeERJQ3KVQdHtw8uBdpBCorUiPr+24Wb8E5aNN0V+KVOX9Ip2CrdFi7lxLTynFafDLtRCmeHHo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(366004)(376002)(396003)(346002)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(4326008)(2616005)(26005)(44832011)(8676002)(8936002)(5660300002)(2906002)(6486002)(6512007)(6506007)(6666004)(478600001)(66476007)(66556008)(66946007)(316002)(6916009)(41300700001)(38100700002)(36756003)(86362001)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UAJGaLNEW40oW+QJqATbQOHfmi7yQbIqoicqx58jEyj8dB0VguFZWYOFrs0E4B7CGDtob8PN7TpM8VhZH2Z+OUNZRJHv2tZtrPwbESkk7BIoX0WRJL6pQFQCw6g2PPe3Z5llJJsF6HTwfWMq/xn/fS7kO+9juFp71rRfVlFmRrZL3R9Z9St/+yHElGO8eatwLIhxVF3LUO7HLeobE1Sq0scV6Xxddr4MPOIsPWojR+xcTtsXySCnZyeuMP5wLDpr3QScQyBxzf8t8xK1CxAWyPngZqOcozKhuJKkuviOiGGjlLv63tp95D7C9Dg2Gbu0hpNFmKIeCjZOWcNWnDu5T8uJ89YrcP9Wf+v45Ncuqei93T4adMpXSBhw4gneEzKxsRJB/Wt1ASLIPpqr11Y8q7O5GQR+UdVsAuKNebN3HiWADeeofKl0vzXTsOGzwT7OoeRmtgcII7+C7g/ckeK3XnfFFtyrlgTHwFjOotwDHLUB0kg5rShyfzok5z8gZU8H/vR8nOGQklNaUdBgUOnLz2ihemkOsHrngNzrqa4ePNNTCplK3I+HvioBs2qTBIm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-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: gznDOZFkMKPRhLqJ1VdpdSPF2JQiw3sVD1a9LMwVNMaxwqg+HIq2jtfPvTNsPBQZLgbzFIF/UY+0xsGXQEH5derLmOOhFO5luzetMf58xO5fsLXz3pNvgiBZOxDqWAgrQ4y89CgLlogH4Id6YH56p5BYYzz8LgKvIxRSE5XD8ZXKTFAoEXua3C1S4QfohmEOr6LbCaK+54S+axni5Qxloe6h7hl0tMccTtpyxQvCH0IMezD17Y6eYwqNIDHURJ+kAK5/OYUUwBndvDkgLyo8KJJeHNqsEF0uYMbt6mJ9meKY2HSlQ5JnQ6ny9OOLMh4ySiSrjx7DZcUmMi51kp+MwdtnZD9yxFmnLwjqC1OUTBEkGnOagsZIgirwUVs9bOLEva9fVahddKsPK6p51rljdiF5sfz8llvhbz3UfnEq9YJd8Qp/pkYtj0C3ujIE5/HVEMHD1Ayf7v68BODCCsGXmBnNQKpmrwedxN46zjE8gyyHH7gQ0yiGkrw6RTPNopGYnGb3Q5UePGpihdyLmofX22D2xqj/FXXEy6yfsywwVmYxa3y3Mbtl37FgU1mCKYR2jLVNXSDcd03Wkqgn277OwFT3KN5LUw3j1DXnLT8imVE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 279ee3e4-ed8d-438b-6bab-08dc0868fa9a X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 12:23:35.4870 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tjLJuqzDt//oI6i7K02Tuf9Aw8k9M41YPmkU7glSgp89Ba8pgkTw92+ZFEjaaeeEo0GIJ/NvfjU+WAVnaxRqYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4360 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_04,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 spamscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290098 X-Proofpoint-GUID: 3_uN4B95kkDgrp2zf1Rp2SbfjhjI_395 X-Proofpoint-ORIG-GUID: 3_uN4B95kkDgrp2zf1Rp2SbfjhjI_395 From: Johannes Thumshirn Add a fstest writing 4k at offset 64k to a file with one RAID tripe already pre-filled for a raid-stripe-tree formatted file system. Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain [Fixed the test statement and trailing white space in the .out file.] --- tests/btrfs/306 | 62 +++++++++++++++++++++++++++++++++++++ tests/btrfs/306.out | 75 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100755 tests/btrfs/306 create mode 100644 tests/btrfs/306.out diff --git a/tests/btrfs/306 b/tests/btrfs/306 new file mode 100755 index 000000000000..e2a9f804ac8b --- /dev/null +++ b/tests/btrfs/306 @@ -0,0 +1,62 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2023 Western Digital Cooperation. All Rights Reserved. +# +# FS QA Test 306 +# +# Test on-disk layout of RAID Stripe Tree Metadata by writing 4k to an emppty +# file at offset 64k with one stripe pre-filled on an otherwise pristine +# filesystem. +# +. ./common/preamble +_begin_fstest auto quick raid remount volume raid-stripe-tree + +. ./common/filter +. ./common/filter.btrfs + +_supported_fs btrfs +_require_btrfs_command inspect-internal dump-tree +_require_btrfs_mkfs_feature "raid-stripe-tree" +_require_scratch_dev_pool 4 +_require_btrfs_fs_feature "raid_stripe_tree" +_require_btrfs_fs_feature "free_space_tree" +_require_btrfs_free_space_tree +_require_btrfs_no_compress + +test $(_get_page_size) -eq 4096 || _notrun "this tests requires 4k pagesize" + +test_4k_write_64koff() +{ + local profile=$1 + local ndevs=$2 + + _scratch_dev_pool_get $ndevs + + echo "==== Testing $profile ====" + _scratch_pool_mkfs -d $profile -m $profile -O raid-stripe-tree + _scratch_mount + + # precondition one stripe + $XFS_IO_PROG -fc "pwrite 0 64k" "$SCRATCH_MNT/bar" | _filter_xfs_io + + $XFS_IO_PROG -fc "pwrite 64k 4k" "$SCRATCH_MNT/foo" | _filter_xfs_io + + _scratch_cycle_mount + md5sum "$SCRATCH_MNT/foo" | _filter_scratch + + _scratch_unmount + + $BTRFS_UTIL_PROG inspect-internal dump-tree -t raid_stripe $SCRATCH_DEV_POOL |\ + _filter_trailing_whitespace |\ + _filter_btrfs_version | _filter_stripe_tree + + _scratch_dev_pool_put +} +echo "= Test 4k write to an empty file at offset 64k with one stripe prefilled =" +test_4k_write_64koff raid0 2 +test_4k_write_64koff raid1 2 +test_4k_write_64koff raid10 4 + +# success, all done +status=0 +exit diff --git a/tests/btrfs/306.out b/tests/btrfs/306.out new file mode 100644 index 000000000000..25065674c77b --- /dev/null +++ b/tests/btrfs/306.out @@ -0,0 +1,75 @@ +QA output created by 306 += Test 4k write to an empty file at offset 64k with one stripe prefilled = +==== Testing raid0 ==== +wrote 65536/65536 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 4096/4096 bytes at offset 65536 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +381b0e7d72cb4f75286fe2b445e8d92a SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 65536) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 1 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid1 ==== +wrote 65536/65536 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 4096/4096 bytes at offset 65536 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +381b0e7d72cb4f75286fe2b445e8d92a SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 65536) itemoff XXXXX itemsize 40 + encoding: RAID1 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 40 + encoding: RAID1 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid10 ==== +wrote 65536/65536 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 4096/4096 bytes at offset 65536 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +381b0e7d72cb4f75286fe2b445e8d92a SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 65536) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 4096) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 3 physical XXXXXXXXX + stripe 1 devid 4 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid From patchwork Fri Dec 29 12:22:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506474 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B90B11701; Fri, 29 Dec 2023 12:23:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="YUed6LMk"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="ScLM9zwx" Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BT8Ofs2009485; Fri, 29 Dec 2023 12:23:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=xE+SLTtEHhOf0HJNjp4iWCAdTlyI04ys4X+syMPFgqA=; b=YUed6LMkMEjStrd5U9GqgrlljLK3SOwHLSz9206Gk68pmIaE3Kt7Ao+FztsIPBqUlJ9o yOv8MqG9AqhgXCfhzlvYjodtIWII9w0GnMRlgDzS04JTNrQIQcFO7cYgjOGFo8+QT767 nYQuOsU5MUNg3iipxg3IQf8VN/m5VSYTwckNqrgqz4WAuI43buf/nibTshfI/1Kbwp6i bn/Yrehc0y/mXmEOtm8088GcS13JSU1L36j+bB24YGpnyJFzYV/avMmEhVNjiWjcyox1 M7Tfaw4N5B7LBkLKAI14uPd8OoQ9gKLraDBsRr46TwuyUESo7o+iSnBw/pQroRcHmBy2 vw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5q5ufhb9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:43 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BTC63lp033534; Fri, 29 Dec 2023 12:23:42 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3v73ade3n7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R/rB0zoNUTj+R2xCf7y/wxxhxCLwLrYiZrNKjibU0qf4kahlyMhcAad7w0cX1rjFTmMZML7t9FzHnDLOW5WuL9AHMQMs8phDZQBMvU2obiY5vEhMbiEDVqzIpHs4x071SsfQEp0xtc7ErMLbS4aFPNmssBtTFdd9DeurBg8N3VfffZx5plL7bvpCyQ38UhaFW/s0TvCfVWOEoWGnPe8B2/ktyablHNXdwGSt2X+GGjO6G8XibCWUh9t08A9kT4RVduUvlj6nKB1yRnB95tfZ0cWAKZYdDSHbbdFjF1b5g2u4wr3/9xsaM3z8dZ/LN//TREfo4Vve4RhbQJD23fYIsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xE+SLTtEHhOf0HJNjp4iWCAdTlyI04ys4X+syMPFgqA=; b=mfgIgKxlUhMfPXoslLWt8xXN/tVFpyTOXtB/8e+W1wSQHhQF4MZ1jgDWjTrXD9hPSXao3DtvY8ES4c6+rOKIJNnURQq24dwRoB305ZrJsOOdiZYzv4vqQw8f9XH7mp6G6cMbhO6wMT879YHJLyIC2w2Xj3I06rbhrcnvYwTaQ2/BDn3p/pSt/yXM+Qm+nlQfrVOHR1wTkrCHinKIle6aF7XSf9Nu0asd8/Bc3ebnFc+WJd/LpqVDqiuVjtVIit7L9j4YQaDjq+8al/fL7btHnkomBYeHX46CUWDrnuBsnUZBmKsN53faUnU67I7loKmw5MRio3HLPjNLODAWCB2N+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xE+SLTtEHhOf0HJNjp4iWCAdTlyI04ys4X+syMPFgqA=; b=ScLM9zwxeXyMPnGF9KcmWBH/TdwL11h5h5yAS3HqEgoxS/Zo31Z0nlyQY7kHGmdzZH3JzOE8L3+O3DMSxnGmPojrcW9KFnfTPh9eUYj0NaoVNpVWmDjohVz7qRk78ezNNMXQWMK50RQ4rjGM/OWrVpT+DFHXm7Ivsxq8IqNHvZc= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by CH2PR10MB4360.namprd10.prod.outlook.com (2603:10b6:610:ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 12:23:39 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 12:23:39 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com Subject: [PATCH v7 09/10] btrfs: add fstests to write 128k to a RST filesystem Date: Fri, 29 Dec 2023 17:52:49 +0530 Message-Id: <33e0709eee01e7af870efede1b880260359daaec.1703838752.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG3P274CA0005.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::17) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|CH2PR10MB4360:EE_ X-MS-Office365-Filtering-Correlation-Id: 97f68618-81b6-4614-db82-08dc0868fcd1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /5QTOwNu89dfLI38UTbxAbfSjict9O4yrnSZriPWY7chjaLNI8lgp6nCOmxFJ1de6FDMiSY9b4IS/euBCxTJFzdbWfu/KHhpbPu3OjAUmnTUpyIdr6KdP+9h+sikYfwQ8FLMzGikLZfKBNzZWj3DswgTnELv5/336g9bf7ocBkiG1KOYXgJXkTidamLUhBpna9VQrBCzBUk3ADV+2ZCABrNAR/KAGgie/Abnk1geAAJSe3yzmQM1He14Tx6sstgtFhNDEZm0JF2eckBwoM4WsehCEZsyVr0ZplldKxOfVweez0fI164HoeuvleJUoiDsID8UJrGw1GFhr8gcrUZnYxoApp6dBvfUmXlLr5LHaijSjG2FkAQcR4bJqZgulmmHCPhUDOJYfguo/hbsib6zIqXJYA0PeoWIHe3beZRXuO9EslMqy8p08VvOiaSfI3U+PaBpdZnR0SKtNGJHFBZRopHuczQPNQX8HnrZVJPNVoiRQm3bFuNApGOzupE0Puqs5BsXIYt8d8+bbbn0Iaq5+hP/bbVGSYU9zuDzAxw+gxZXBJnxAlycCOXptD3hx3Wt9obGTF35h0PmwIBQgVjgBqrkNZW3PmtjngTMp9I0Q8U= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(366004)(376002)(396003)(346002)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(4326008)(2616005)(26005)(44832011)(8676002)(8936002)(5660300002)(2906002)(6486002)(6512007)(6506007)(6666004)(478600001)(66476007)(66556008)(66946007)(316002)(6916009)(41300700001)(38100700002)(36756003)(86362001)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kYVzkPpefmc/UA6OmcNcyMB9G3Oa1gurKHfPSj3h5/s8hoYcC94yuNbU0oBxIu+qnLaBuR/lyzAwNtfwNclxxZzGbs6HHw+f1iP2OUMizLq0OqfnLr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0rH8ORWcxH5HQ8yglvScnXwh0V5NPBJbYpeB9E4PTHjbY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97f68618-81b6-4614-db82-08dc0868fcd1 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 12:23:39.3840 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mW/ATe4E+9rtq1uioIs0iVsZqghbmLgDBJC8f0HTPIdd5nkhPA0S5HF/pwO87vxiDCbtBOSMb7nh0mZD0QVsQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4360 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_04,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290098 X-Proofpoint-GUID: buCNF2gBxSKDXxt_P3pEmLWY2-cTiIGf X-Proofpoint-ORIG-GUID: buCNF2gBxSKDXxt_P3pEmLWY2-cTiIGf From: Johannes Thumshirn Add a test writing 128k to a file on an empty filesystem formatted with a raid-stripe-tree. Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain [Fixed the test statement and trailing white space in the .out file.] --- tests/btrfs/307 | 59 ++++++++++++++++++++++++++++++++++++++++ tests/btrfs/307.out | 65 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100755 tests/btrfs/307 create mode 100644 tests/btrfs/307.out diff --git a/tests/btrfs/307 b/tests/btrfs/307 new file mode 100755 index 000000000000..30656bcf0d96 --- /dev/null +++ b/tests/btrfs/307 @@ -0,0 +1,59 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2023 Western Digital Cooperation. All Rights Reserved. +# +# FS QA Test 307 +# +# Test on-disk layout of RAID Stripe Tree Metadata by writing 128k to a new +# file on a pristine filesystem +# +. ./common/preamble +_begin_fstest auto quick raid remount volume raid-stripe-tree + +. ./common/filter +. ./common/filter.btrfs + +_supported_fs btrfs +_require_btrfs_command inspect-internal dump-tree +_require_btrfs_mkfs_feature "raid-stripe-tree" +_require_scratch_dev_pool 4 +_require_btrfs_fs_feature "raid_stripe_tree" +_require_btrfs_fs_feature "free_space_tree" +_require_btrfs_free_space_tree +_require_btrfs_no_compress + +test $(_get_page_size) -eq 4096 || _notrun "this tests requires 4k pagesize" + +test_128k_write() +{ + local profile=$1 + local ndevs=$2 + + _scratch_dev_pool_get $ndevs + + echo "==== Testing $profile ====" + _scratch_pool_mkfs -d $profile -m $profile -O raid-stripe-tree + _scratch_mount + + $XFS_IO_PROG -fc "pwrite 0 128k" "$SCRATCH_MNT/foo" | _filter_xfs_io + + _scratch_cycle_mount + md5sum "$SCRATCH_MNT/foo" | _filter_scratch + + _scratch_unmount + + $BTRFS_UTIL_PROG inspect-internal dump-tree -t raid_stripe $SCRATCH_DEV_POOL |\ + _filter_trailing_whitespace |\ + _filter_btrfs_version | _filter_stripe_tree + + _scratch_dev_pool_put +} + +echo "= Test 128k write to empty file =" +test_128k_write raid0 2 +test_128k_write raid1 2 +test_128k_write raid10 4 + +# success, all done +status=0 +exit diff --git a/tests/btrfs/307.out b/tests/btrfs/307.out new file mode 100644 index 000000000000..2815d17d7f03 --- /dev/null +++ b/tests/btrfs/307.out @@ -0,0 +1,65 @@ +QA output created by 307 += Test 128k write to empty file = +==== Testing raid0 ==== +wrote 131072/131072 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +d48858312a922db7eb86377f638dbc9f SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 65536) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 1 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 65536) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid1 ==== +wrote 131072/131072 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +d48858312a922db7eb86377f638dbc9f SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 131072) itemoff XXXXX itemsize 40 + encoding: RAID1 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid10 ==== +wrote 131072/131072 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +d48858312a922db7eb86377f638dbc9f SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 65536) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 65536) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 3 physical XXXXXXXXX + stripe 1 devid 4 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid From patchwork Fri Dec 29 12:22:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13506475 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE72911701; Fri, 29 Dec 2023 12:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="aXQkE4+7"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="N7CIFU/G" Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BTBSdbJ011768; Fri, 29 Dec 2023 12:23:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=dLm9mQva9idge1wPPMm75VA2v+dP7I3cdVN31Xg3dQQ=; b=aXQkE4+7MbqWmHA96lF+pfLjCzniHmO40WoyvjhozhQjJ8NF/Q1lVmR8k5mbvVz/yI+5 rQaLw2JDY3nsbidc/13AZwDb8xwJLLTRHuUnW8U+kRWaAd/Ro7SUM4x0THqvbAxGg24Z TD0pTQiKqAeHlVBtjCA4s7niEhTUWoGdqfaO2GbSd6FxyjHMzy74576eNW9+/Zlu8la5 1KFbflqGW0uvBsKxYVS95Ln1CojNmDbj3jq/IJtGv0d3nzMGx/0TWIk06bwdvfnEhy2K gl3Z9WdhnTls16SHKJ0tRWb/iQWrxsqrF/9XPxKC3TpVHfYIc4JrrFpX72DHWVWYeCAX fg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3v5p52fkmp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:46 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BTBpQkM003004; Fri, 29 Dec 2023 12:23:45 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3v6a965msp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Dec 2023 12:23:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gar4bKSBxakbSshjzrvt1ZZZ+uy6LfbOOT3p/myfc8NGjedQPoYD6qA3J0kLF1KVhoYKhlDdd8GcR1Mquhondy3A2W1wHXar7kNlO8mMBms+b8q2a3TKpaTCSF83AVhq7027hVIDxx7LJhv7tewHubMCOxtRx9GFlcXmq5ffDm7rJU2qZF3C8ETww9/HmrOevI8lYIzpg2v/yVMOvjO72O+6IiXu+BZU/JKoovDxFGuLCI3S/euxtlWSUsmlN1OGoSljdEBZR8h9FzMXgUnXbuCO1KEcKv3QJWFDtdpY1D8dDhO1zGdiBa37z4TmfzFXCpWikc/5T5ICSZTAQzAT8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dLm9mQva9idge1wPPMm75VA2v+dP7I3cdVN31Xg3dQQ=; b=GVT4E4beLgzeYtD+rUpbEX2mVdq3G7RFkVwPmgZNrMtsuKeO/wghsGGI//kcPVzdXG9uiaqRBwBG/OzhhutGh4NRjWD4J4qo0Mf/rc+VXGOYX5nLbcZXIpkXOs5yhTU/Wp+KQU5tWGNrCnotrnXapXOD7p+5C7/4aaDGJ226OgWC6Pw2Q+j++d/XBAdfW4lRWxw4bTtc5CM0N/axgyG8i4evgXBlzYz+avB7rnq7uLgc7nwAQrrjB9EbpTEo0+3RYemzQ6CMwa3OvuCyNdJ8GKBgMZmCmkwGFJRWp4Lxgud6PE3or4EuzGeWt6ha97rSZlDQrFGjF3yPTrj5vI2I8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dLm9mQva9idge1wPPMm75VA2v+dP7I3cdVN31Xg3dQQ=; b=N7CIFU/GZGgBz9uoshoLUydbpbUpuQZwvX5+gF4VkBVVsf6P7Qf9qHyh04ZYLcN3VS18fykiGhKBtc7Xleecl7N4bgYCDrD71rDTXs69SakC+UBw6GRKOPJPkuirlvR2GNJee3whZvGn+oMkim6f0+lpr2vOfsnL822pDOL9w4s= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB4695.namprd10.prod.outlook.com (2603:10b6:510:3f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 12:23:43 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::2000:9c78:19f5:176a%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 12:23:43 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com Subject: [PATCH v7 10/10] btrfs: add fstest for overwriting a file partially with RST Date: Fri, 29 Dec 2023 17:52:50 +0530 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG3P274CA0011.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::23) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB4695:EE_ X-MS-Office365-Filtering-Correlation-Id: ffe9cd0a-af1c-4c7a-5e4d-08dc0868ff1c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yZWKz4J/0Z7+GAvs3m52WbN8y+uYIdKnYzmpssV6qUmAGKPMFWy/r25cQBZZ+rKOx2VV9KUX0SCy0g0hvV2PgUq2Hmv9msCoKovvQPf5HmgLCyMFs1xaNPaB4MsAzHTEd6axbOHnwRTjzUoNXexxKVPhVEocqTJAPHIws2vtPEu8q4iUnVdlDXWYZADLl99YHtxK7OP1E7STmwQvXdkuucsqmez2OpKz7KPpVEBkftA9CCM4PVHkkGqkGuYMhKcd4I08IkKcYIlMvnTESp2AiF7Q6xVqb95RMyYNVIiSte5SM3NV5nH8Pu3lBIKLgjwBAEYY7ejkwtr4Mt/wca8EU9tACtbUvlCM8M75x1ZDnYAq6Kz1SUmKmgckQNU0jIF6Ohz3qkx4BjvldwzcxsVMLrVqb2abiZzbilMvn64AGW7dicTf3hiZQ+XcplepAV93CHNjb7pmnK+KzSqKDkJFuCKhltSp0Y86iTl45Cm80Wx+7lytcv7rGjuG4K2kGOD+2L7pGdkDZAGluIX/uFeE1DkCRuuLUkDqD1Jg+wkaa5o0NE/9hEHLr5TZpJkt6pVOmiD5AaSn2XtrxZ8ongMyIXx31DohLUdhg3+/zOQ8PII= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(136003)(346002)(39860400002)(366004)(396003)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(6512007)(6506007)(8936002)(6916009)(66556008)(66476007)(86362001)(66946007)(6666004)(478600001)(6486002)(2616005)(26005)(36756003)(316002)(4326008)(5660300002)(44832011)(8676002)(2906002)(41300700001)(38100700002)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Gq5NxcL2bcFR2LaNjgA8ZG8UWV+oQvCLeP2qXvNgIpyC5GooPEJU45wOaNhbqSbw6GK3w6fCLAWrmStlJuOBvvFPFs1+Jkzs9YtENp2YARovH1owodIwEK7BRubDB3gOXUp4YN5E21G6pTpSwh0ebrx25yix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eAF3OjhTK64wOt4IZw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffe9cd0a-af1c-4c7a-5e4d-08dc0868ff1c X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 12:23:43.2211 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XwpDX/RvKuVY7sCkb5HBTpZKNdtmq0REbo1RT3Rz7DA3vSJPgvO402GxCkZFyRQe5LS7cLpmqupriSKAbQH4mQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4695 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_04,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 spamscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312290098 X-Proofpoint-GUID: mwFbpxnESz35dnTScM-CC2ULLJfHAopW X-Proofpoint-ORIG-GUID: mwFbpxnESz35dnTScM-CC2ULLJfHAopW From: Johannes Thumshirn Add a test writing 128k to an empty file with one stripe already pre-filled on-disk. Then overwrite a portion of the file in the middle. Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain [Fixed the test statement and trailing white space in the .out file.] --- tests/btrfs/308 | 63 ++++++++++++++++++++++++++ tests/btrfs/308.out | 106 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 169 insertions(+) create mode 100755 tests/btrfs/308 create mode 100644 tests/btrfs/308.out diff --git a/tests/btrfs/308 b/tests/btrfs/308 new file mode 100755 index 000000000000..7d651b2b4c9c --- /dev/null +++ b/tests/btrfs/308 @@ -0,0 +1,63 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2023 Western Digital Cooperation. All Rights Reserved. +# +# FS QA Test 308 +# +# Test on-disk layout of RAID Stripe Tree Metadata by writing 128k to an empty +# file on a filesystem that has one stripe already pre-filled. Afterwards +# overwrite a portion of the file. +# +. ./common/preamble +_begin_fstest auto quick raid remount volume raid-stripe-tree + +. ./common/filter +. ./common/filter.btrfs + +_supported_fs btrfs +_require_btrfs_command inspect-internal dump-tree +_require_btrfs_mkfs_feature "raid-stripe-tree" +_require_scratch_dev_pool 4 +_require_btrfs_fs_feature "raid_stripe_tree" +_require_btrfs_fs_feature "free_space_tree" +_require_btrfs_free_space_tree +_require_btrfs_no_compress +_require_btrfs_no_nodatacow + +test $(_get_page_size) -eq 4096 || _notrun "this tests requires 4k pagesize" + +test_128k_write_overwrite() +{ + local profile=$1 + local ndevs=$2 + + _scratch_dev_pool_get $ndevs + + echo "==== Testing $profile ====" + _scratch_pool_mkfs -d $profile -m $profile -O raid-stripe-tree + _scratch_mount + + $XFS_IO_PROG -fc "pwrite -W 0 32k" "$SCRATCH_MNT/bar" | _filter_xfs_io + $XFS_IO_PROG -fc "pwrite -W 0 128k" "$SCRATCH_MNT/foo" | _filter_xfs_io + $XFS_IO_PROG -fc "pwrite -W 64k 8k" "$SCRATCH_MNT/foo" | _filter_xfs_io + + _scratch_cycle_mount + md5sum "$SCRATCH_MNT/foo" | _filter_scratch + + _scratch_unmount + + $BTRFS_UTIL_PROG inspect-internal dump-tree -t raid_stripe $SCRATCH_DEV_POOL |\ + _filter_trailing_whitespace |\ + _filter_btrfs_version | _filter_stripe_tree + + _scratch_dev_pool_put +} + +echo "= Test 128k write to empty file with 1st stripe partially prefilled then overwrite =" +test_128k_write_overwrite raid0 2 +test_128k_write_overwrite raid1 2 +test_128k_write_overwrite raid10 4 + +# success, all done +status=0 +exit diff --git a/tests/btrfs/308.out b/tests/btrfs/308.out new file mode 100644 index 000000000000..23b31dd32959 --- /dev/null +++ b/tests/btrfs/308.out @@ -0,0 +1,106 @@ +QA output created by 308 += Test 128k write to empty file with 1st stripe partially prefilled then overwrite = +==== Testing raid0 ==== +wrote 32768/32768 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 131072/131072 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 8192/8192 bytes at offset 65536 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +d48858312a922db7eb86377f638dbc9f SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 32768) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 1 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 32768) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 1 physical XXXXXXXXX + item 2 key (XXXXXX RAID_STRIPE 65536) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 2 physical XXXXXXXXX + item 3 key (XXXXXX RAID_STRIPE 32768) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 1 physical XXXXXXXXX + item 4 key (XXXXXX RAID_STRIPE 8192) itemoff XXXXX itemsize 24 + encoding: RAID0 + stripe 0 devid 1 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid1 ==== +wrote 32768/32768 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 131072/131072 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 8192/8192 bytes at offset 65536 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +d48858312a922db7eb86377f638dbc9f SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 32768) itemoff XXXXX itemsize 40 + encoding: RAID1 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 131072) itemoff XXXXX itemsize 40 + encoding: RAID1 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 2 key (XXXXXX RAID_STRIPE 8192) itemoff XXXXX itemsize 40 + encoding: RAID1 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid +==== Testing raid10 ==== +wrote 32768/32768 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 131072/131072 bytes at offset 0 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 8192/8192 bytes at offset 65536 +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +d48858312a922db7eb86377f638dbc9f SCRATCH_MNT/foo + +raid stripe tree key (RAID_STRIPE_TREE ROOT_ITEM 0) +leaf XXXXXXXXX items X free space XXXXX generation X owner RAID_STRIPE_TREE +leaf XXXXXXXXX flags 0x1(WRITTEN) backref revision 1 +checksum stored +checksum calced +fs uuid +chunk uuid + item 0 key (XXXXXX RAID_STRIPE 32768) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 1 key (XXXXXX RAID_STRIPE 32768) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 2 key (XXXXXX RAID_STRIPE 65536) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 3 physical XXXXXXXXX + stripe 1 devid 4 physical XXXXXXXXX + item 3 key (XXXXXX RAID_STRIPE 32768) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX + item 4 key (XXXXXX RAID_STRIPE 8192) itemoff XXXXX itemsize 40 + encoding: RAID10 + stripe 0 devid 1 physical XXXXXXXXX + stripe 1 devid 2 physical XXXXXXXXX +total bytes XXXXXXXX +bytes used XXXXXX +uuid