From patchwork Thu Jan 4 05:48:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510809 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 A70BE1D55F; Thu, 4 Jan 2024 05:48: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="OOj1JMg0"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="Km7i1Rne" 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 403MLfDw001823; Thu, 4 Jan 2024 05:48: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=1OS0xRismOfyW5Rrv3XjpjXyLLe6VT1FUHfr2tanZbM=; b=OOj1JMg009HObFfN4HwEXEAJQnNIfnjFSAPu6lQYL/1vXuJT94f2p8tW6IuYd/MCY7wq t9ai3p2haHO0AlAKMdattHevuvAuwAGKhXv9LFcwHfft831L8UnuIhgqHB7Edn/Kjbp8 Ga8i1UXN/zv4cKcWuQWMB2DI9QfaiI0ULcANLdnq5oEl0wBMsh2TVPIgTSE8xBQcHAPx 73jk3+Smdk0l2fFYaLEqnfXD4lC2SkdcFcjqXTZq1RiClfJwzdgoHLh7gPrmdVe/649G OzwX3KM8kAoelxOZYshBIDWofMfGBBSdLQr4S43pFgf5Jc/D0REBJgULx4hEHq0MWjIH KA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vaatu6bnc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:48:34 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4045lkxA015824; Thu, 4 Jan 2024 05:48:34 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpudg0gj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:48:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aTQNn5mcR8Y7lg/KvvFf93xmN+wnup/6sS4iLPlOywWODICQemM7JIDGCeohOtSQXrIXvQ1wbPRdLCk86l98nnyTKUDwRpONTkut5cs/K7q8U/7tN7rnfiuncWSKixrvwpJtZyD6dnNYmRThB3yQITEMTP5e/Kctx4ukUQedWBmESQG/Sb9XpcNPmu8Rm3mU6/P2APVrjDvCq3WakhF3IpCc2YWaKvmu2zJmLsEqbK1rJ+WgLoGHz7Dw1ZlRJsHWTXnJMer2r2qe6hDalryqVQ/tkP+jbZCNHUK7kQc0z4jHrhPcIDxLXDRBsIq4NIOsRbXMrPAxq3dKQjFOWmmrOw== 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=1OS0xRismOfyW5Rrv3XjpjXyLLe6VT1FUHfr2tanZbM=; b=Rj+MpHXZKfWKlLx5NNogj+rNTH35ZwNuZG7XueLbXSVSUt8/9D6w5ZmArpcBg1Cqam4y+CKzoXGgnsPtej5nz1wnggkQHN5vdGuNxe4GHGOmCSJRI1MgKQXFILT5iwYwyUneecxRXYHThn/QCZWSI5RkWAplYOee95D+Hhwcmc/6QdmelXILOrma+rVc9Vu8qQujWlnT8nEC038eVaVxNwGmRVIn7maBy8WOQK7A4HzyC3kxCNQW1F2FfQSaCT9vbuqfcqhsw1dgfALoVRaR1psoVKNropO7AJWK7SvstZPfur9fCDfK0kzoVHYSBWN6aInMjmpvBq9Pf59eH5mwfg== 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=1OS0xRismOfyW5Rrv3XjpjXyLLe6VT1FUHfr2tanZbM=; b=Km7i1RnegU0j289HqVpOdeKy9M40mAQrAA+Su4g4w4Ls0csZJaMbbyD2UoaLxbNehDOoC82jzEOSgqSuBpu97iO05CNtHjXBpDxhuRx0LdnFV6MAf+CIrI74hunbsagSxo20n8I9yOD/2XcgjeaQrYybq6K2SVAQYlzZebBwV6M= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:48:32 +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.023; Thu, 4 Jan 2024 05:48:32 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 01/10] fstests: doc: add new raid-stripe-tree group Date: Thu, 4 Jan 2024 11:18:07 +0530 Message-Id: <8ff870dc3bc3717b2e1794ac4c56798fc0471f06.1704344811.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SI2P153CA0028.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::9) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: 90a49692-4bff-4ce4-ac6a-08dc0ce8c8be X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qUPF7vPzLVQiTqGuVQz9Wgmye01J+fafqbA3SZwIwEPHRSHwoL3GMX6vOG2Ic1EMXhAR9i0DmY8R4z4F62ce6gP555vQm7DoGFgiXzvwLk1YQpMOxIkWrWU+87gnl3cBl9GqrrW8wWI2fbcHUAii2NmtJ7YtAEhSrbOL8Kcv+Q9KG1wfzU8zqdt4qvd2ohXYJ6kXNlTjWtKvtxEZbkgTBwonNE78RYWwxAy6KFC0hgkVUKXzmSnCYkQimQA//nXj4QA9B7Ae2d9sYqiQtKHfZ7Mweclc5TWa0nWRMd43z9SUJCqfhRVLzDBoD2FQTyc/XxvNFaj07h8T2U7O1pO30D326eYbhQNfA79yZJFXzYZJvfq7zvheZd2+Kv7U84BcTevkDhsS2R12Me5ECI/w+1HOXiKxwZHVn8GIiAxq2cQRi7Kwe9AUrjxpjF2Sp7FAXRliHvknU9IQMvDTFibHVPJN5V3n3BAIEdsoCP5Z+YHnnHd+lCjDo/6W4GDBJtL1aN0F4+djsBWZ9zvypREbzFsKx0tj5yLRgbSnqddkWxQP/cvLC0kyWMC1+HY5RyUt 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(4744005)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(83380400001)(41300700001)(38100700002)(36756003)(86362001)(6506007)(6666004)(478600001)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZeQnQPnlvg7Je4DizLQGBKiAMxIux4jWtJgjghvtHCbKpTP18NjN6UzkYp272nJJZhzYviUUTs57flUnPtDmcdJ5aksWmWC6pWxSjmRTQfNSO2fbM1l5G24hIQVqD+Vd+dU+Ef6CwjqJ3YqiCNoejAuoYnsm64/565s+wgZ0M/IMIc1yhkyEaZPiJ3M9d/I1Py46cEtqw2oxQLiK5KBT6TfIkwiS+KeAr+2w4JFG2CtqZVcTd5m775TqfBk2mm7S6YFZB7cG/dGaCgBahzBwmUdiUdeEtnlpsfUf/7okvPdnUzynGLFR7y2BsC73OV2dg+Gieabb9GrMpphA/uYAuZDP4oH1Jie5nR/iaZ/6tg6/dkuIYLohNtj61A46JpxjtzVH+cxy19mNdvMeVb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EKXXC4fKBFbZJRgayDmnFtSpCYxGW2d1hyhQoRpTTR/g0sCPPN7hqvF7NPXeGyJYN2ORraF2X5nhWD/tH5lzcIyESQ9ntX5Smhfg2hl8ZCjw/DeXhyGs9Zzx69FT X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: tknTAyBMfgvmucsk810ZCS0kx1Wak7QBqooMnqeSU10PRU650PvxKKUfjoNWI+Lg3IOzT538zSd7SFiFXuuyZ6N3YhAfLZ0doJVXrt2R5dKro51k4HJEatZZCeJO6si1zIMEScREdClk6j/fDq6iWvYhkVv4LLCaRyFnQKLRyL+coPV6+EN+eAvpLJxO8f9uQeXZYDLR5uXCCtn8Hdra99OaXX8f8tEGnGvcYHQi3NejyhbUBCYi9g9RcqsFCYyt2rwsj8TeIWJ0Zpen26ROpL9tLB6lfWkzgv+6HFDI8S9Vwzc8ylf2ImpBeCqZlCajgI8QdVlEFNXcBqDgi8/rpCyTWXHeWziOQj/AATnM1kcV/rkJxQcq/+Tk1WXJDf+/EEWynEgue3vXTcnUKwIbVR1wNZFRwAxLi2x4X2JBZuXi6v1VvfpWaP6Bhz2gQvwF/Fg2zj3Ozch+MooKmDAE42zhwEJ7AG9Ha1ON0WjVQ9RD18oGjMgUpOyzgJdA9Qb3MgNx6/FwAjH1Y8wM+/JV/hdDU7GcQoeVbFcSzQKvz26QyNU3vLMKvAZKmRXH7GmzOTPxYRBFLhztOHfxbyVkDjOQrbHYmPg7GAgVj3Up+G8= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90a49692-4bff-4ce4-ac6a-08dc0ce8c8be X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:48:32.0780 (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: r9buKjh8/C0dNtqBRjuQ1lZDdyZm1m/HtEEu7FWKzCDcl+yot00uDL9Zzj9bTdngyX58jrgH+FCDODYj62hlaw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-GUID: kMpX7jNiHo_62RmNMgYJSwTD03Neq0FS X-Proofpoint-ORIG-GUID: kMpX7jNiHo_62RmNMgYJSwTD03Neq0FS 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 Thu Jan 4 05:48:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510810 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 742FD1D68E; Thu, 4 Jan 2024 05:49:43 +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="AN1Srwb3"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="Zpp4p31X" Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 403MLXZd027250; Thu, 4 Jan 2024 05:49:40 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=EKulkkd2eaKLZGzfLYbI2aJ2OfDDP8kRCGMix1mEgpw=; b=AN1Srwb3SVgyWOYtDedEY4XyoK3AqNRnMNCD37FPWH1ffhxlHUuXPXYnddUHCZmppT2z j2H6OqSrBR/8RD75NftJ6f79fuoX4bf0jVpyOQsGDs5Tvkvl8w0BMHK+f10T3YsayALj zoFr5+K4tvikPXpQ8xOQm324uNVorkh6+FudtYYjmwwYe6oEG/MmvslYL8cHKVCnXlRI RuAkYz1m3DYILsTp0xrBJRE696eq/eFd3QpsvIKNjrpcD2J55Oud4epywZNtUnISij4j Jx1bc4xnLOXCRz965Vb4wxAl8+x/XGbZ6J0CbnZBGnz8gQQASedlp4E0YBBXMjBs2veP Zg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3va9me6br0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:40 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4045lcoD015771; Thu, 4 Jan 2024 05:49:39 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpudg1r6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z0Jl7pB7WzhRSYwr1NfugqkSkVniGJkSan5dV9uGk0ZUrDA6XtD8SALdtpyiYNv4l/Bkk7YqqsNBQAsIu4DpHUCmeGHydNpFnsAnDdEX4b7E/R88OXWg+BkbUSOCXBqpL7cmx1Yc49fuyDQMgj1ydnJ1CHLldKtJy/J0Hz6x6qt0RpuVWzVffbIRQardCMF3hNLM5YFV2pS3qv6D/jwXQy8g3+RyEco3/KYxEY3/igGLUxoITzxrBucLUDXmlSxTctdLLdAN0F98DSlVGUxJN59RnWtyXRE6kyH1rkwr1QzlsUqb7S7RB5PrjKpBqlc1a2rVpdEjaJwwcUt5fcEFQw== 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=EKulkkd2eaKLZGzfLYbI2aJ2OfDDP8kRCGMix1mEgpw=; b=A1M/TH2d2ncTdr0kLY+3LyNjRn5O6SF99aVcFJwn8rroJ0uZKIG0+C3J5Qy+wGguCh65E52JpGM/ViQoY6dANZPoJZLxhwdJpCwiY7C0Qh0Sve/l3LfUrmUHSr42FVmYQjnR55Xh0/C02qIZ0xpWvapJ4sqP5WxUyswJR0w1kCOlIm8JoO4bVXY7ZYV2tUcr1VgV9gH8zwdcuB92UKzxvLJnPZTaPD6y4mIrNHKSuv0ew+R7CZF25/+phsNO11/H7Qsk5MDvsAwhaYwlnjMIXaKhYdL5zbCYFLUO2AxhGL6y7Niuy8rI6UWPn1i1bgELhAD/WpyWiCAqc06adyF8Jw== 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=EKulkkd2eaKLZGzfLYbI2aJ2OfDDP8kRCGMix1mEgpw=; b=Zpp4p31XTD7mrxt95vjq9VirI+33MQTpPX0wtU004QW7GV3N2DZGUpPDfv7i356wwhOtAUDt7g4+54JrcDwiNH/6+jUlystx3yo219mQK3tl0TA+ZPUnr6LdjU47KIEFmzZ4fnhUhM0hGMeJPtzonOCGhV09rE8WTR14Iy3klKs= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:48:37 +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.023; Thu, 4 Jan 2024 05:48:37 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 02/10] common: add _require_btrfs_no_nodatacow helper Date: Thu, 4 Jan 2024 11:18:08 +0530 Message-Id: <1cea3aa45d90904999866da86565528e45532109.1704344811.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SGAP274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::34) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: 7fa419dc-1e46-4561-244b-08dc0ce8cbc3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4n/61WQYeJH6zhoHQ/vLIpykmtIDe6wIDEJ3wVP/HdDd47l940waAfpQPbREXsj2bjNA0dsWJrSljvakEn1+o0aU4OuCupptJGwsMluwSCT+RrKco73qkXY+gC5rQijgs3/ryEVR5r+zNnZVexhG9dtEQJlrs/U9hdfGJ3UegCEhSqynhUGiMiGD6bn3dE79gEc33xHtQg9MYIWE2Z/6M217URd+2rmVzzneylmbWLO9ZoJtXotGtIviA4yj+gU0Etd4HFcHrOS+/cqbEjogwLLephGYaC+CMNF2TQU2R+CwtzPf2CReUK14a+RjO5XRyB/0/iQUlAWgzsk7PNlJigVhp4q3eCAgIbPik7+BxjF9vjCPpREwtnbprCgAXu4xmyETGIi04Y0VG7aHx0Q7EVICaR1fEVtdv0PUNhCxkk2DGMn5zEFQs//11UJPxfp7YetVcPIJ7WKZ7gaEnccJhYQgeKq3ftVNowavwfuXFATcQKZdddrSWfjXM7VeGQxNzJylFk3+xTncyweRbHxeaHiDAiWXuOUjFtiygYtJDlWxtQPffLcUbO5fyIX0xfaV 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(4744005)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(41300700001)(38100700002)(36756003)(86362001)(6506007)(6666004)(478600001)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: y9T2xWCNxtY9I5wwwlQAiif8z0qPWl4LlHxUppN0UcaGfassJx2XzrR8FRNasl6VwDxiKHfX5hRGUwX0Ep8kC0mmcxiiQsoq0NjkUsebe95ZzvzBaJmK6wBe2Lg1enZ+bbtIWRgpqToZWXo00CIYnwiD12wMOnaRADFLA5NIJgPdqvPjpQAbmkIvka9l55CpGxj/dj30QSeAeg4h9wKpjtLYyDkC1AE1+PWcftP9RfAKMNKmzVhTthxBQZM8U7LsMoTZXQhj179T6vM2PEup4vNzaZw1MUp0DKIhjxsSsQ7zI92MR9fx/gB/NTZUVG7Y25Z0lgbEEJlDhu0/C7VjkDiIhWZqHddHnLNgJTcmuD2R91RdvMipvbGXcipOCOn3Eqenje1OK8mre4oef3f6gJuUIUb+lcbaB/PuZEhUJE66xtZDlBi/zj56AyqqOLe7sdJvykyLqfRrFHXD919noL6yVWm/zjMaVQ0ocI5jmAzYojBN6uzo4uZR9aPKQLxKAmfUOBC+yVA7/2XYUa4Ct7T2J9HiPyoZ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ntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: TK0LYQftqhoi/lTCqeVHnn/i5GtbmjKB2f3YdjMN8yf8XfSSElHU8p7LS3X8N2JbqAE8EwHZyo+cU7kVsEuYVum99LfFXV4nX24c/9hK33oxqcIZi2BEgIFdb8ogzLo0p5i+H4iSYZH7NbCHGiJfuLqOZBX9aFUX43BivxfZZmGGeGkKD1Vrfl6OZ1jAZjgXLmx6cxCk9oJV4F3wsaQuQGFkE59cTgc6S1Gu5MUdBmJRxixrx6Pqt7uRedklvkf09Wk50TqfFT4uqzwNHEQK6rzTPV5CUr/HfnCMOvl307wqq108LdZxWMJP7htNToeyb5lJAPbbGDPXVKsgZIzoQDtm6jGsgGqbBGBWxDNjeiSyxwNhtZ0Rlimq+7E7TWVAkz5/GPFv38ei3ArlO/ioBOjKWFr3IXfe5MxRv1Ak9OOZyxvUf7V7Vjf0o1RJrL1SraACuNo2zyUPcZSN9+6LlYaKOo+wAzCrWUhv3DYW5jHpsWNKsPNToOUYyBTCPzXuYeeARL3hyAQhksXVu5iOxrwTwaZqC53fMmyowk515AaccSy4Vx04fSM11DCPVrbDuYGOGkX8NtG/QpqaHChreGz4TG7Pn7Nh4ovTZ9dI434= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7fa419dc-1e46-4561-244b-08dc0ce8cbc3 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:48:37.1413 (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: 3oKWi1Bgnq5xHVmiXq+jSFbVWKPdYXDOslL5gsq0kLc6CyElX1kZBI1TfaYYpaQ6IGksuUSNdfwyj4iUC4FySw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-ORIG-GUID: fMe-lCOy-P8ucs6UxawLkD4_KYcYZqiU X-Proofpoint-GUID: fMe-lCOy-P8ucs6UxawLkD4_KYcYZqiU 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 Thu Jan 4 05:48:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510818 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 92FBA18C31; Thu, 4 Jan 2024 05:49:56 +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="lANGXFdP"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="XioG9qVQ" 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 403MLk8I002443; Thu, 4 Jan 2024 05:49:53 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=/e0rs9iQF6QCE7o5m1A0BaCD0xn0nrn1DRJGKu435kM=; b=lANGXFdP6i45JR57kQsjZOgqvu+okLnTtaxnPx9dIdnlXRHWbdIESrBJsuj5sUjjG3zo xBkXlI48+sx0iqdkFiTKHqaXnNPXRmEMxuWKEKRimwcDlvFxOk35XES660PJ5mVqPOp7 fD7pu71XN2BOZnoboA0ZUBcILL1Mvcu4h+izc+zm8pwMaJLXOdXC+l4ce3+jp9VF2gZ3 mJG6qk2nswmHL1BB5ZqC52DEPVgTMEoOEAXryQvfbTON3ljI3OESTZPkkzGZRNFyQKyG tgffXPBG008aasfYouinExyF6sSJzPPEImNv87CC7k9fVn4MnIFBGZCz/mShdSxTqcgX 4Q== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vaatu6br4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:53 +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 4045XxQq013100; Thu, 4 Jan 2024 05:49:52 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpmy14jf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G/Az/I8FxRyR2inyeebJKS+BoYtsOn0WTsgvQiEGMB8rL2gYlgZaIg22oiYTg+lh+NLjAa6h4T0K1EKLIlIrN/0Y3A7D4raZSwToUTzNWvwGtBo/UmrEqbSQeO4/OdUCvPX91U4BbXtXgiSf076a/j2uqPzO3y7G7nstFdj4uxWWnF1x8EzIks3b5MHZIm95KGsr6o1AXdeHPxvn5wWu5Ffi0Xk45QS/yBgLKYbYQKfEMbA41bE5hFrqAIJLPvajMZ7mDLU9VP86bBPRuuBUHe0rukIn6o0fp959f03abw6wOcX5FOwL+nChtuO8hVjlzJh1w0NVJUguoOYfF1WTGQ== 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=/e0rs9iQF6QCE7o5m1A0BaCD0xn0nrn1DRJGKu435kM=; b=bT9yHAFfZIDpWBxG9D3UlIBAyNxw6Yh3RRYnwjsZLH/OE+N/HaTs/G+3k+QAsRX3+BQmAFCOBU6+ONGrHyQjtakSZBFHZu8/NAyHptxJAe8jXKQRjJl+wBb94kQIJsDEtP6XrMudk/4+z/Hi0Mv5GvAFV9Rbc0ARO47VhHVF+/XrjIZVdbrDSirlcplyzxjD8xOUVzQ+XP6n8I4yK44Wipp9CQVEXhRI65gR039zL92XAES3DRmCiMA30WEA4leJ+wFcy8Kk2gmULw/Ih4c3eK5DX2f86jquwUaCxKsvfH95oBWQFLz/3Db01HXUalITBQfPPIY9WIyg0rc+nBwDzw== 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=/e0rs9iQF6QCE7o5m1A0BaCD0xn0nrn1DRJGKu435kM=; b=XioG9qVQ0mrB1Byer65fk58KkTJZPuwRjri2dO20aymwQy2cBt0+698uVhvXXn1/PpRC9gNDfzv0pPFR1aQg7xNT8dv7WNcVRawFgmJbZjp2+Y11/EzKd2jUzkco/JqnnBOcMN3EVAf/QQcQ0li8mF6JxHZfsJtGCHLb4Mq74yw= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:48:41 +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.023; Thu, 4 Jan 2024 05:48:41 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 03/10] common: add _require_btrfs_free_space_tree Date: Thu, 4 Jan 2024 11:18:09 +0530 Message-Id: <36293c4b5396ac2bdb4bb30c86749c50c6071cff.1704344811.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR01CA0029.apcprd01.prod.exchangelabs.com (2603:1096:4:192::8) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: 546be64d-dfbd-48cd-ba04-08dc0ce8ce20 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 60K08A3JOF5vWlTZcHOdOJ1QmvnOubQ1tqs0Jr4JO1sd61lkJNuOcM6+Q8GMQpMWJTaQvwxAOYKcfN3uolYiYV9neSJDOwC3EJScpcKpzjRFSt96jCkclbZ0JCE25540Cj5wM+0qBYBplWWAbxKC0VgzIaKfsQVTj6oCHPu4QHf/y4OAnfyHv7HbxKKfLxnr654Sa7B36SP46gKaoB8m+1wV+mTn0cgSY0aqH0NsUiIaajYH7tyPW4Lb3l7xsW0jifoQwMkCL/rnM4oiAEIbHSfZ7+SrwNFGl769G0zm59S4cPEiYZAJC4Tkatm3r3rIw6BHFFFmB7po84dRKJnbkqKkHfYNDmneoZ36ItjYUuW6pWT+ktK1cJPIgJwybNLIyCgRxY30oip57wAY9djuqGsOv+6GBy+4Xoz8Ki1H3H34i/goKsKSxw0azZmxtQFg4zy+39fyJnfvqOPESZjo8+fFkb6azUi8/YqQ0hn/PsQTkJbUl4cjMZ9//ISwvKfe7E8etiEcMhNxm7ApG6g8bnQUkE5MWgPp1LTNcKezGAuxn/4KEwwwFHfPUQKmB8G0 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(4744005)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(41300700001)(38100700002)(36756003)(86362001)(6506007)(6666004)(478600001)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vDO1Y3Bu5kuEaJsDSNVQktjBK5u6yQUokwWd+TyT96Tjt4KEBMO26S5DR/WYa0Sys9zihMyqy/Sv4oCom/7q3Ae3Js2SALYgeGngC9CvnMseHQWyG6S0TFPEo8DqWZCCw/WHh556Rqi4+Sl8HZskQ72FQtPoJbS/J/DVEAsr88VAGf4WMsM5361nozUFMq+Ko91FwjQoihZDwoz6YlKEqwpkBf3mSGhPA2bboeFXZIEzc4VVR0KJGtMBuHxkXTEFpADylSFBRFFIhQ0dFQfRFshpwVtu5xYLiZ/o+kOAs4UtKq9dLk2e8sRXSXXfOr00znUonb9HdcUTHEDVHT1d3J7fubax51t5ro0HrbdaXicSIwDC8ZE9R0Q9Bneo4gGyUQRd5/ZqZetSMQolcoxekrAS9M3XqkHAE3M7yffqsAA9iR1w5sNGaPqRAoxA3+/qIDtBds8sFKcBt83RK3G8LsdOIzYzwjuxNNBsWAuwqHujkTAURTsN8LytusSLbBds/wNZB6DCELB3q8QuyoJJ6y+LrCPCjaBsvlG5D+rTbzjp4ykc2GOFu5+aufrMH8ex10V4RC5zfygwT85zkNAHSOFP4zaatXCY+WEDP6ToMQ2+h53z95pZ67Ib0tB1JgPZcmwbHsRtBx5s5bsFktwHpNwRAY5HhWrvw08o2l3Cl1WWs5++CGOAZKQn20U2lBjoj54BJt4FgmGE8Od0Ayt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r9GeHLEdoh5qEdFzNSf5seXIxT0hcN+ReUpqa2Ipad2A5R3jkZqs22Z4DVKT5bWpUOOSiDhCa8EdRVBckWW2ZQygFl/WmoxvLXlv+cG0Lts9hXKnHFvSsKxiuOXQvOlyIH+wman4eV+OnJZpO0egVtnubNmww5dXqCT+ICF2ZeziAtaaY1+c4Reyqb3aWNUliDQ0Sdu/BvjGtVMpnnE+9c+XOQp6CJN2+tlt+arf4R5AALgp7epAOgx7gAdu3rahmhGKRLethZ2qTD9uuOGjT9LW8GnNNd9mUPsQ+fyHfJsmOK/visFVpZ42UCoC+IGEja/FUVyMiALt0iU3H9nwQWyCiRmr0SCZHU9J9dh55Sdoa2CGjcieKUZigEX90GL8sMTwdFo9+GNxZybx/eIdb9nUjcMzZkRR4VcUrZdL/wYa5d0t9mSWonMNmXp0GxwMerUjXLf5JjwjX7Tgvr5LN0ZLE9OTagW35OyMG0E= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 546be64d-dfbd-48cd-ba04-08dc0ce8ce20 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:48:41.0971 (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: BIzGQtGoOGDQ34+7cbVmayQPkXBAXfHLryiaY5niKwKQViSphjHEoz/KiBbo546sGig+uIzerB6c9FUKll1Iig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 adultscore=0 suspectscore=0 mlxscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-GUID: 2YA3l75AI7V4A4kYFYNWMuUltPSW37nQ X-Proofpoint-ORIG-GUID: 2YA3l75AI7V4A4kYFYNWMuUltPSW37nQ 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 Thu Jan 4 05:48:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510817 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 E6B791F95F; Thu, 4 Jan 2024 05:49:52 +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="Nvox5sYR"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="LVJBBpvz" 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 403MLgci001984; Thu, 4 Jan 2024 05:49:50 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=1gcqeyqRrXesq0iCHCTMjAS18ugSCsKZSJGsyOu/FFE=; b=Nvox5sYRla8mo2G2j9q2MRlQmPl1crzWWvxDrty2zT3CEgDtGxUmfVQfRsY77FUdm/pa iWD6EUXwfd5rxLjivFsCaG5mA28P5FEJlZlRtAzlpX+nBVsvh2ehm9zR1mQ1Bjj0pxmH +zA4deGAxXVX7RP3zCJG+L2ydMOwsPwOOx6WmZ8dDA9ju8HurEMktfk2DAI0owo04pzM NrY2NFNHiS+6BDdk02/uMYusU/PIDtw/Kse1GFlPKqEX3gmHoLU5YJMppZ2UAqfEstXF LAMKCOUpcb61uFIstQzV0ypIRAnS+plxL0EbViFmpoiLY2hgKTXyjOq45NxnP5nrK8Z+ og== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vaatu6bqr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:50 +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 4045mfTI014824; Thu, 4 Jan 2024 05:49:49 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpkc18c4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Eu7+vHUXNs9GKYrBRnII5J1X6u0BFIjV6pHE9jlUQxqeXHAwc845U4568O+twJY5Jdr6KTB1QSmGg37UfT4VIIxgE+LAO785AT6Pha5hDZpg5Os1IBVgqPaFUJB/w4TP2qzDupxFr26iuObAQomEeYQp8PEtOxtYbPtIL1BOL2+uM9H42CaH4AJ4yvFAwGBt75MuzzSrkPvUm5psz8U24i/fCQScNixgo5yHRTj8aBPuqfGkYhgJqelN4jieWQfQSbkhCl0H8CCyyBepgk4LQnLQBpp7qzfKjkDccZrvvqq2fcHMaqw3Tt6WH1OqKNntd8OfA2Aky0K+jEjzK7mEpw== 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=1gcqeyqRrXesq0iCHCTMjAS18ugSCsKZSJGsyOu/FFE=; b=NjpglMR6xF+dQB+WWtUjQbmhMSE/zw07FhTEFHDyHfnw0YgDeDaqDUel+RIpVs0nSfQ44cuu2GkWcpIn5KpFxVyLOjHJdKV7HtMlBOtXxGRyiHmaUKUp5MsDGXhKIS9t+J1osV2K9mVWMyEJDt4puXWUhvwhs11+b58J/9KCg4ugWyXqtyTTc3gCHqIjEp4wlnTj663v7rfodHH6SCxy1hEeVVovQYe2LOeAkEDj/yzX0SzTECmTsmVGWiwCwHmkvmTlaDDFFa6aNfW1AjjuM9Syx53J6qV1K8loW2CB9SYauybXu7NUxKtZ79zMQk+KwWYBRxxMcc/T+2pQGJa0Wg== 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=1gcqeyqRrXesq0iCHCTMjAS18ugSCsKZSJGsyOu/FFE=; b=LVJBBpvz3EgtLd3lEPqCDSFTwT5oXGIAcXsJrpZT6vu2SmUbpmENATky7mvu241A3lt8HuyzBq11wRFv1wOjuz8DWDZIT0M8Bi8nqvsXkPKhdwFdAslVau3x6UZCP8XwwzuFml8IZPKN0uAQJP1kL4NiGT8cQhzFefRxD8hwI1k= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:48:45 +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.023; Thu, 4 Jan 2024 05:48:45 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 04/10] common: add _filter_trailing_whitespace Date: Thu, 4 Jan 2024 11:18:10 +0530 Message-Id: <6f15c20d955e7a0bd57c5647ad0f6548af43fd2e.1704344811.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR01CA0030.apcprd01.prod.exchangelabs.com (2603:1096:4:192::15) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: 6ecf88ba-41d0-4c4c-b5f9-08dc0ce8d080 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5iwv3z8ZfqSnyGTVn4vgS3mQMVU1apgQD8KwT/30gWKDPMNqWf+J0j/eakwOubFcnNSQIIILA2+d1KrhT/ycotIYskP/OxT9CIDbZOTcC3FENoKTgsKYtVicIQ96sdH8c7i/ostre2dCEKOwxwmtqTIQ1EbsDAagHZ72feyprMzg88hFLCc5in73nQ8qePO6iW2uQC3AdkfqZ569rdEkXHcJpGEG/t7GuJbHefs7jW1MrWtbHdKqcJPFZzOC/yujyvShQUPUQkuAb/vo4Bm19afwHeh8NAsKgl09Vr4MEkAPa37fvpLmSq6qbOXWuePzEUpHMz9Q9nlgVzCIZk61Mkoya8dQtwMHmh3sTx5fVYgTNaDr4X+5mcE7/XGX0VHn9KOFd+PPnxJrmrtmUQzU+7Xwnz2tV6+fBPbhxNGMrNECL8PrUHmf81PslP4OgawyZ5Azx4+8h6rV5csnyRjRNhuuKzyD8Had7xe4b4qD0mKUaO0Yb5Wi3Q1Ydyp6++qwWS9LFZuhPOuF6lkrJXHoSu45la7pmylltfkhJKIoeYmfE4iLbwD3iRXKyPORfDRx 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(4744005)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(41300700001)(38100700002)(36756003)(86362001)(6506007)(6666004)(478600001)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vqq0YPDuLH7LSgMCy7KbBXEwNCoQXSTRaAWy/QvzupCMiCNdLBybTNicyvK4fXZYuUE5qfuH0Ub5RUNgNwtaBQHy9sNvCpn4Jf0ofrsLk25OsOmxgeb9WgG2IwChkkBj5zsVtzN+8k2N1wmz0o+Ei1DURkCyc8VtAi0mQU64sbS0U2wb2mq8Uq7NKraljePyEx1w1E0f3z/+cNoY5ts+yduel+N55hGOJtr223c+wkxY1hegeeD/3kRc7477FceEaEzuLj+rdSEn2cUwQBUqTmxoprlW6FK3+PFofEIOynHTBomAm4p82cGUCF8iznmRKHHt75dfUn6wTfN/U4PUWpcg5+lks+Pyrjnl4lavZq7hRrxJ9egS426uuS+S/Lc4Utql5pYeg0i7C0wCZAsLoCcpbpqJ8MV7JpRbNBkvCdi9annkd3CemL7PzdE3lLBrDmruWyAFkXVo9hFkdnX2WZ8LPGy826g/UxUY98P2fP38faTOseazif5fkKWMqg+torIlUPiYeqPQUdUIsyXCMiTOsYa5T1ATgOOpA2qjA6UV7jVOjKUC0OwJxSqPWQdxyBFizwaxmBfV8aMYHJShgWufuydtEhQEJA8fOE7qrffeVJJefJRBkJ1ZvPPbu/k3TvWCnn31DuDtU1dVzgsJTlZaALp8ar1P6g1Pv+VHVtgnY94V/YwGtxA5Y6M48Ns6NCES8z/hCZPCP0PLnu5HV4BlfmWEm9fM7AKGDNMSvD8N/6Ku7E90YiSEVHeu96nQIUrrYm5SL3UOZMciWTJQFFFDLL2WFkdQWvfb8ufvBtpL7IRgCvGwVHllYuQxkdejsXvTh2wAp/d2OEH+siTiLucMKKBlW9C95w/upKFPHz5RdgN1tN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UueihE6tVFPVv7JgQ9GvdaO/fhEYYmpTGqFlhU9Hzqt+b8bWsP6Pcu013UOK4Dad8XYEN3mlmQvpX1sDMOt+TYn2UfqJe7GGBSovH1sN3glKGlrD2i8kBOF5YAXAikRtZz6fbnLikjwx0ASEnoiR4A64B+kYsQ5BvCrO8/r/TQ+JdnBTzZBoxtJRl+Eg3YGhHGgx14m5p5elkc2gjbcEEcrUAP3ZKhZy5zkz4kSJ6gV+JE+7UjkkUkhjqykhQ20iAjHKtbsVn1xZDEXGF7saZITFSKHol62gQnHOsyiGQkcQZ4DLETy6r4EGP1wcmQ3bT78= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ecf88ba-41d0-4c4c-b5f9-08dc0ce8d080 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:48:45.1163 (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: BSUkZ18DMDp+KEbf0/Ycd0bd61J5sNozB9zdafo0kuDOQgeOI1+yd6UYnS+0vbnyw0FEjgRcF3d1LXwtpwAxpA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 spamscore=0 malwarescore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-GUID: HBFD_13GOCgSJZqJdCv4VOrSBbmv05fj X-Proofpoint-ORIG-GUID: HBFD_13GOCgSJZqJdCv4VOrSBbmv05fj 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..36d51bd957dd 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 -e "s/\s+$//" +} + # make sure this script returns success /bin/true From patchwork Thu Jan 4 05:48:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510812 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 3029A1DFC1; Thu, 4 Jan 2024 05:49:45 +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="IHtigLZI"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="UHBI8I3W" 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 404280mc006617; Thu, 4 Jan 2024 05:49:41 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=iKC6wpn34RqY35D0LDYqpCJdTEpxogitCB+XDstU8pM=; b=IHtigLZIk54lf8riZxLHfrcQL7VjIsVbpTRyshl4WhKO8UFwiOBiZanRtB6BzsdvBtam c9ka5qOck3GBgiDJMry19Yu0zJjfNTv5/7mJF4OVWq+29wtu0NmVw0BhcDhQDt7pzVLb YvxaNIO/eYqBS8Ae1bP5TFfCT6FNkEa++JZHfES4QL8PIxtF/jdWgHtQMho1g0/9VHP/ g8Saiijlo3/DBZ2AUdl690w1C1MF6GB2u/BjmKyDOxDMcniORSLMXqWwqAxtirrf3/Uw SvD1IyFeWES8Lh9JOOfXIoBJLjW+JOUis3oiMwpAAo9Pq4aH8aZed4BGRIIkIQA4ZBoc Qg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3va9t26fdx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:41 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4045lcoF015771; Thu, 4 Jan 2024 05:49:40 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpudg1r6-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UGgxF6VJ3Sw4FOL0r2tcD2S/2T/C9SjycquK2dOyiYDubN51IAPSMUfjM1cOmZLDVaAOTz5aTQtVrhWwQN2JO89jWDf3iB+3ePTLWH+5/1lxflJ1nOKrhu7pKb/sHqWZAL2gg7YgvcdLd7J2lf2Jg5k9dXB+qpP8ofoKVzlUE3LD0COi0QHjyzP0h1I7YefG5LzXXyE9/meHJgSuV+lcb3Non/LgJAXlc01d3xgzs9PKVGGwKRIiCqPlp0mHwxWqN6+EfgneimNc0oVRv7YMIibrJYtbS24la6nHHL8vwSpfes3fKo1jmOeaQkdcVFutWKl60rtmZczFSJYWdAHzcg== 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=iKC6wpn34RqY35D0LDYqpCJdTEpxogitCB+XDstU8pM=; b=MVGypt42tRWlgDBgC1QDy7rQCCfl23aeXAG4CEGP9b8bj6V+ssgS3lN+Ih4vWNu/I7Jdrj55Hp5G+R4Pf53z3NGi7t53kSCDUJ2o8/ZwPu88Bj3Is7Npu4FF5dOBARuJm2H06PEoHgtPSj7z2O+GLxBN/EhqwHjMjA6sLl1PjJGfCruLofPbOWx2vXtZ6DDczMdIKXnC52rThW5rgxlLRj/yWfv2X7tCpjgecWJXDr2xGtefa6hiEaSsMBJf2Ewc1ZTJTrB2NDLTLmZBq8q58zDTzPE+vlMlIDvD1OkB4opwx0eVR8LYfEH2sxeRA5yLw4hmzELywCo0fWwOyO+t7A== 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=iKC6wpn34RqY35D0LDYqpCJdTEpxogitCB+XDstU8pM=; b=UHBI8I3WXd/M5CHwRMPxY50hjNuBxz7AeyZG1XHxmQrwN6vBQB7sRXMXAXODERyDQCQn3Y94xx4cx6iQw25cwwQr82oZiSphNTRim0W8msJtxTogsKTJVRzi18u/vgphU6i2jOUlZBcARCp41AVKhJ2AXniG8R4NAecws7lSyDA= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:48:49 +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.023; Thu, 4 Jan 2024 05:48:49 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 05/10] common: add filter for btrfs raid-stripe dump Date: Thu, 4 Jan 2024 11:18:11 +0530 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0009.apcprd02.prod.outlook.com (2603:1096:3:17::21) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: b398e086-ffd5-4fb7-4553-08dc0ce8d31c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vIOOoWeDFIvp6AoSd4BjqjFZPP7WvxGzzNuCzrxBtvcrOKhv/+rhuyMZpIrY05mSed2HbRlahiBv7i9VqCv70QlO9ko6ZamV+ucpeSijYlJcc+iuDsB8ctNQPHPgMS+Zkfw0+XxqVkQeX334YQ46Dp5UbU9pP9OJgCOW1/4QRlBm18KwbDQtiqrnUFcVUZXQ4GdobmiC4aQW606D+mi+7E+mJyzxKOE9A+/NM0zYZytyHa2HcnKaG2wIDigzDOT5SykyjuevR/eTTQ/ED04iMYogssFCvru2EfYA0tYcFJ3GbbD+pAAuDnys+Oam6bqJFYVOHnUPMpC+dzZkNrW/MhPsVuFFd2N1bK8ofdnneOt4H485UjV/3+5xsEmqHBbU/76r3vu2WH3OMjtFMC9q9hgj1xsGu2leyhdKg1MjAhHUHlG+78i6iuTR6TAAD0kbCwwIjDK1AlTVQFL3ticBnHThIOd4HkVOWZC5cFV3tE8xziJs81LWU1AyBbfrBmxYqIbyJ9aF9qSrtaqwP585kw6UQQEL/gT7EOq7sw0C2FNdEY2PId1Muxylysqp4DzU 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(41300700001)(38100700002)(36756003)(86362001)(6506007)(6666004)(478600001)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: l0qdzT6ygzgyBe5d5NCSnHE36lkZUdVKwPmJbQzJWGVgFpO4ox2ya3ys+HDAS29xY+FIEfkKeLQTAGMPZQU3GpAtzJkD2D+/rXlbjwr5slUjb0k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699PPU6aOMXd7TSMB8/1e2due9eKNwI= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b398e086-ffd5-4fb7-4553-08dc0ce8d31c X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:48:49.6721 (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: woFiuUnZvcVuGNc5h0gbgBht3rOx/gLOfPPQxKGAf0un7Zulyu5yCGxYfqzX+Lme+1X9XsRHAF1srQ+XPv+VqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-GUID: yXrhidQtjJV51qsb6cM079zP1gG8oZc9 X-Proofpoint-ORIG-GUID: yXrhidQtjJV51qsb6cM079zP1gG8oZc9 From: Johannes Thumshirn Reviewed-by: Filipe Manana Reviewed-by: Anand Jain Signed-off-by: Johannes Thumshirn Signed-off-by: Anand Jain [ add trailing whitespace and the version filter ] --- common/filter.btrfs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/common/filter.btrfs b/common/filter.btrfs index 8c6fe5793663..8ab76fcb193a 100644 --- a/common/filter.btrfs +++ b/common/filter.btrfs @@ -126,5 +126,20 @@ _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() +{ + _filter_trailing_whitespace | _filter_btrfs_version |\ + 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 Thu Jan 4 05:48:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510811 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 C034C1D68F; Thu, 4 Jan 2024 05:49: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="LEUq5a+C"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="gmR/Cfb+" 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 4044ae2V030247; Thu, 4 Jan 2024 05:49:41 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=EOSbtE/m7FQiOt3hWnWaMHctLbJ0itvcjhLnpIWiwB4=; b=LEUq5a+CTjtqkmVZaHGPfmHZPL5GYQ7OIRZFX8rqi/IWFNNZ+LDxJckg/t57LffwMg7w iD3lLo7qDTR1ur5HVpNxzX3rtnblEUC6EBK3EMBmb2qpZUJ73/XJnN+XDgNtvTFoqQWr 7WimuTA/oWvxSlc55ujbW9iyat8xURpOD+PDP58sEoDitb0GKetAB0o06P9ehtwMJ6+R 7IA3rfvBU+hnedWLT/SfEDJCPTxfuRwwjjO9m5apEkInUCG6ALOpjIs+2FhwsP4MwEAM 5EVtKXsrVm/lYqYrGFBRer5Xqv6ZiqMsENkiHW2qa00g88Y+stx1S7mmoYdBeR1W/XE7 0g== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vaa03xdwf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:41 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4045lcoG015771; Thu, 4 Jan 2024 05:49:40 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpudg1r6-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mUtp9zUkkUj5GJbjUkoEthTawXr6k+t9ZQZrS+PIk3tMJgzl0V4hWbOvKpQ0nfrgv8+s84ou911XF2OJ8ZD8UvYO9D8vri3NNRCtalq5RwOwNdfWai4KdkagXprDmRYLhb19jLY4NKtcn/gPCVancUbaeoTu5Sj+lddredsZFaeKq0T9cVi9MsRSx84HoFHy89ay7RfPPdE0DSN+w/lt3lmAKVhtybcQjMXGpt41O0MOT7oztcDTVzUMGUjx10h5RAV3Vfz8JhjdIQLEK8qlCKZJzchbmxAtCv7ndqG6VnkgK8f+lm4ae5bAGdqwp1UwGnkK5b0Z5IFtYzQsNMcfJA== 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=EOSbtE/m7FQiOt3hWnWaMHctLbJ0itvcjhLnpIWiwB4=; b=gyi0S8dRpE+NBG1HFGoly/msq/QAztJifqTwzoG7Ts2Piy1/Qq5Y2hlVf7fHyoTD45+rNJD7hTN6l/syf/GCBbm0p081hxOzCrP4pTXaGeJIT325aKzA/ZcfwlSKSmLTfktgPuDDsgfy4XETkgcmXkJpeIvWen15/Aa+rv2tBzWEgP80yR2jQnrOkfofqyqembLstNyzRRipmVVI6jD7yHTxTO+EvM9Or6Pvww7UxhivtZtq28ERRRItokwfPaKRS/cKikPInr1kMpkmn1l+2t53VFQid9Eijuv698oWRX/TOiAHxL2FSrPZYLEDz1K4jpJhV6nU7dGtpTDkPfXODQ== 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=EOSbtE/m7FQiOt3hWnWaMHctLbJ0itvcjhLnpIWiwB4=; b=gmR/Cfb+VSwp2m2eMerNhdux4sJxSrBHfZJsFi0aR/JEi2j9zji6J3YDwfgqIuZCSN3EuFiBsKsYOkP1+E8bGLV7d82QyNZUk3TpjWGxjoCRg2YVW8RO0bTGiI3V9rmTCFhvPrg7yB0RNfqtHbYS/rabp8yMS6B6DcRj0J5NNqo= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:48: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.023; Thu, 4 Jan 2024 05:48:54 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 06/10] btrfs: add fstest for stripe-tree metadata with 4k write Date: Thu, 4 Jan 2024 11:18:12 +0530 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SI1PR02CA0046.apcprd02.prod.outlook.com (2603:1096:4:1f5::14) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: 17d99735-9a11-4f4f-872b-08dc0ce8d5e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FjtkNjoCcwrf0joT7T6hXfJy4vx6DID1to5V9EGUtvg+PdzhRIfG0THCH3mVZWhDUZu0k80oyNMCe+qr2J33VMdq4NvhAgvVMnHhnv86wLlm1AzzCXK16BoUujNBC7d1+38Lwpa6TQXALXgNMGNxyOuHLI0YoEEQiezlpBpr3FV39qCpe+IsVOTh94dFaU2dAtMm6lcz1gpOwMU6mvd1EY9A5BnRIPpUnUJyo+5SCFfOcXWVI7FPhTFA8ukQGD1QDHpKnYtBLp8T0mxmqSDTdeHc/xzaIoOSACTb9yvmDoQBThOE2ICnaxGURKSIODl+VReaKl2l28P12CrBfxWois6NfLOnss6gNI2N/WiKHFrmYqQfpzCXcIEPWDzI0CdYUUYVDWOz92+gxR/WLVFBawb6OHAvDRL04qNy0BE0upWnDhWbGEOA+I3KPuD9KDxCkKPBom2/r66HTcsNJ243A0GeEF2EApZQ2r6oK+QUnEdK/zGeY21ZBgLpQfB2l6IVll9c8Z5ttKD7qU8jEqrB5U7iyMPLbLxBa525xeIEYPV7jjmxe0+1Cy5p82Um+iTFv/jU4unbGsYt9rYaz6viknI1YcMNLBEVW4L9qvyyAy4= 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(41300700001)(38100700002)(36756003)(86362001)(6506007)(6666004)(478600001)(6486002)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KFQXkI53Ys4lsIFuXPY1uOdkXn65nZxlYe2PZYZdk/DA8kAcHvEJn+9N8l71xDxJ5LlI+pH+UMBocIuzLEF1DWqc7/FIpQHft1tEli4mHD2+eJK4QydVNpthICRvSSLKX0Fb0R2ugPaiBu+R3aGVWEVfKKpRBp9OWZ4iyLV+yJvopSaIGIVKNtRaKL+45GExvz6c7X26OMLp0vY4G4J3wbZnhR9qLNzjdzZfiyIQRE0K+3wOIeWJ7LXjBmDOCLh7JnbYVWrZau7OnOF2fjgrOm0r/6RWprrWDplf/TRypKVFHtBkMnKtLpTKM2ZsIvO4ZnEgIvQhYeCtZh8K8TZOquA+cjZ9Lid67VaFj9MBbWLzeAgv+bmXknlbUHoJn53/G/ogFwHsU4GZtr2kyPvZekqeKSkinpu0FeISd9I6WLsxn+RmGGOK9snBu58Rw/vbjg5a7TFXZALMfN+cJK+XNAU4LfkFV/S+BYWzQOpmxJLKwb0zEmW2SscBp/Rq3kz6+K4SpTjosdFBUCK2vkMDmGtkSeRbnK78zt2RLo2zZZgJR6L/imEKqYlx9c0C9IGB/S9By/+Pz7zhsVKsYPC8waDa/Xj6n8TCIZ6dwXm0e6suftMGez50v7nQoo8D0XvVHDrxuWREdI2SEHtO5Bal3Jc1mqcvIAjJlggpLfxR8nxvO8G38SV/GUK8Bz4lRGDUEtvquaur7kllCfHfc86QZRoY1P1nr+hSag5WiXVl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RgWu/Pne153v8ls1UVXN1Z74pGGKnyanLfdPAQnBOr6Dc2pgrcY5k+arlRI8qgWR/1MNSzfH7ty8lF2DIRTpc6a09B73Fnyuz/y2N41KGR2wYF9AloZU5RDzOulGRuu+zst5lIpM27JbbMLprMHoBAREcKLbFc5YKFmt4miY0/NkBR2toWJOt5upkMfOfk8NdVR8enilV4Br5cF9Bs1Ca+Jq5bo/LFrN/9C5W4duVwvFR0xnUkOh0EqlakF5ccrVisXPNph01uoJlo3h71ZRpxXa2dlmuQAraMRRAXNXmH5aAtkaYh935M3M+LhWnEu69w+QV2+1aYrYe78VTDDkZPor/pyCLci3k2jRElzcFLc3n158OMcMfyRCUG6emvekrcQ0x6sQNoG5kwbAA4LyP413VHIXBEdFwX41TzOY+gy6uYumtwAATnlGaGENYyESHqnWQUZLnNRkeBt0Ddzw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17d99735-9a11-4f4f-872b-08dc0ce8d5e7 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:48:54.3280 (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: npYiaMPD/cl1McM0bzZb8tVhsKIXR6xv6Khxj4qtlWYTHl3BJu37RzECLya93bWfaiQDubILvkoztRkANCts3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-ORIG-GUID: z-b-yWiDTmIQ4Q4T4LXhsd5rUUgsVZGk X-Proofpoint-GUID: z-b-yWiDTmIQ4Q4T4LXhsd5rUUgsVZGk 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 | 58 +++++++++++++++++++++++++++++++++++++++++++++ tests/btrfs/304.out | 58 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 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..1ecc528d687a --- /dev/null +++ b/tests/btrfs/304 @@ -0,0 +1,58 @@ +#! /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_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 Thu Jan 4 05:48:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510815 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 E88D21DFD7; Thu, 4 Jan 2024 05:49:46 +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="HwezbSbL"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="Yx5CdpWt" 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 40427xZI020733; Thu, 4 Jan 2024 05:49:42 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=OoBSTKu/Pk6WBfQP21vruAhhYUTAp7CyaZ5uA4pER4E=; b=HwezbSbLV02UiGf0va2+2GAnMSciffGZLG9gw21omLD6NdOReqai3KyLi/Yiq72FrHW8 CnVOgnzZSgL3SOT7FRzRFczv4ph184eMVSdsslT5RkWcvNf76DqHDsaKAdJCGWoALSuA nHQEGhMKLExdSZQ9EdeGJuBnaGAz/cfcL5TuDrJiGm5gWscd3b6ZzspGqAm5TbrO0FXw qBGZlkSb+osSpj9pAO/EQGyPA3/01jue4zME4m+oADg4qlvflOxNIFT83KNs2vFYrFRM aPFyTr2F6UGN8gxNaRILXAwVz4VX4blftNTcd5fBEAmTnI7O7NP+ItwZxqzJ9D8aRBw4 Zw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vabrv6dcg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:42 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4045lcoH015771; Thu, 4 Jan 2024 05:49:40 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpudg1r6-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IT87S9pKQK3hEiibU4yDp06xzCHCj4BxR5dcG+iQHrIo+YYDUuzEa1LFQpY8idV5tjNRXjwq+JEbyNrFMzVcRV4zBiVGRY0Yr7/40e1xiZBwxkTVsKOG+2jrithZyWOxWpf1frh5/UROe4axf1nPhQoa5d5gPeBDfmAy/cxbZ/124aOFWHGc/5hcpNH3wO3jifnU/E3WckUAXq4pkTFU07vrfRkswOCcwh0gJynR4uHkCfO6BIs9yXZC/vl6JJ5+qucRd/sHQ+GUkAfyl49nQCxYGn3SHpejHSrwSbpeS5fRlE+5LRiexHotEwuj5htGJDccyAZ1XEzmsOqAbxoXug== 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=OoBSTKu/Pk6WBfQP21vruAhhYUTAp7CyaZ5uA4pER4E=; b=ebygAmbBoaVg8p34K8/2RcLOj5yXLkWtng+fiJKsv2KeADj1werlgsfRuSR9o+7mXxMycc+RQeW1Nw0ZNcKL17Dy/akgmM8kUzaE331Sy5zhcDNvX90mFPxtUDpr9aCkmqNGEqCoVWBBebMGvSDgtdW9js9FcQBNnFqFbA61wuvqhjJk1vdR+4db/082hAUY6GjWZKv6yno7rwTPjDCf13Mvj8STr8MKHUqPN62oHsyPzqgUD0X31/Vwu6H2cTS+0ggyo5FG3Lbu4T8Qj7f9Q7f7V8DM4HGK+8swIINkHisgZziWzYd1LD7hOOxxJE+XxZzSgZGu4C3MY0HqJaZHSg== 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=OoBSTKu/Pk6WBfQP21vruAhhYUTAp7CyaZ5uA4pER4E=; b=Yx5CdpWtvj4DZAJ5M0sCpiuBH9c3D5esKHA0qo3hUMxlgL8Ii39AaIH8qIYsnruLc/FbNiuToDf7ehPem13Ge710bSLZ9TYRolR0ksEXn/0qHzBotAucw0y5Cv/YozPBA0KBrhZXS4WWK08YYbYNS4uAxE1kSl4dNAESlzvUMW8= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:48:58 +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.023; Thu, 4 Jan 2024 05:48:58 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 07/10] btrfs: add fstest for 8k write spanning two stripes on raid-stripe-tree Date: Thu, 4 Jan 2024 11:18:13 +0530 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR01CA0019.apcprd01.prod.exchangelabs.com (2603:1096:4:192::12) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: 6543c21a-6d18-4ba0-7f14-08dc0ce8d847 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: heeXFhsKbHP56YzgFF3qzgpLOyeGfML0Wy6D1/Z78f1TBxrVon8y+RG2L3siJT6uhyTN/jmiHrYcrdH9I/mL9sQ5dYoq3R7YE+i+PGjHgPzjv4czGPPnhHpTi1icz+qnDH/FCqVx8o0Y8QId1cORsch+iaQ0BF3788VA/oulT62pqzwZYWPKsc6RV3Kcg+Zin3xQVhM5zcPbbuM4ax3q67RbeR4KcoHYA0AzbG/PIdXL/MkXWDfnKKvaZmA2XGpQUdwMt29ZAvz4sNzCb+lfl6+uI99hnX7T0ple1zQulwJ3/a2JwaayZjtbL0bvuhY+ns6LjeSMth17OBgSseIZjIMmu/3LZyQpUkfft8snovxczEGsXuoLneqQejzNvSLuQak7PWIusKa7r7pmfXF0X+eJWj7c+ss5NTihnXhOoTL+7CaweAaMFbGu02CvD4swI30tDqV7W+45zANl3l0CVuM3OpKFsS9A9giXmz7Gj6XSiteyqazhKcFIanWtqDDODvDEahUUiJLkKmD+mbCNMU/a/r5rbTDyKafu6nmHGtq6LQEU6fXDMJXrwIuVUhOwvrFnAAzlXKoPfTgMF7/8v5sS/zW2Eo7Jem9eGiWNkaY= 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(41300700001)(38100700002)(36756003)(86362001)(6506007)(6666004)(478600001)(6486002)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-Ch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uGDj0BwGbiv5ibA+XjDkYvBvsUeCrhQN8RjFKSb8PHSKdC/wbLWLB9g9Swa711xAORsYDKaIA7XCXKerKWXNFujMqKB1LLJX93iOsJe3y69a/yyRj2K1c3nmOM6ixFTRKV0z8R1PZgqthV8olDVq5pHLlUyv3XEw3PtcIzT6RmoZE5Dpd4TqTNEOJFq7L6uIc/DA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6543c21a-6d18-4ba0-7f14-08dc0ce8d847 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:48:58.1894 (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: HW7fWNqikaBX0a8B2MQI16hAF9ZZo4MlVmso4781IBjVNlCy5dR4jtGOv6lxcGrjfb5EMan5fgJtGykm0EI51g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-ORIG-GUID: MaE1f6zDG32fLx6aKWbM3GxAmOOGSRFn X-Proofpoint-GUID: MaE1f6zDG32fLx6aKWbM3GxAmOOGSRFn 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 | 63 ++++++++++++++++++++++++++++++++++ tests/btrfs/305.out | 82 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 145 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..1c092482e8ce --- /dev/null +++ b/tests/btrfs/305 @@ -0,0 +1,63 @@ +#! /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_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 Thu Jan 4 05:48:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510814 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 75D871DA27; Thu, 4 Jan 2024 05:49:45 +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="nIzAxG1B"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="DLn29+ma" 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 403MLWD9028105; Thu, 4 Jan 2024 05:49:42 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=ST0KX8+xDA5QtnA/oeWDlMWIZEi16TFYwUNYsCIpH5U=; b=nIzAxG1BR/qyQCbVC7hbpefO0U7dGXb7/UTdjyCqKoUnr3xuBz37R3Ar5VDA2FnaBTOA d4uI8x2HXWfZLn8qvAILbZ6uKO655KbRQROt1b8Zat3aPUCvYaYhTcc3UZ334T0qtjiL tJEyKd6KoPS+usM7zRTsnB1z/BB/K2EvKBJrE9mfFwK9oYNGHiaUf5yWemoY2qruwvit Sj/QGl+1WPTXvdF3oG4rEZAMGE6I8nLf4O9q367YRD9xj+GHS0FcFEOhXUvfGVHHJzvV rd0FSIZiEWegrcP4wt1dJyTqk+b85S+8cwVsuI1vfXQkXVtmEvr1WiMq7Hw3HiivCcSv LA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vab8d6e93-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:41 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4045lcoI015771; Thu, 4 Jan 2024 05:49:41 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpudg1r6-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cWziiecANed3t1PzG2JlQyM1FC2U9xNVlg/vuPMYkaiWZfdN3avWru0H4s1zuDOFfHo4e1iQsxZ8/AqlMUXvkeUBts7EapnGushmj0EzRHFRvtSI2+4aaZ31qC7ABJLShDjHQ8TVf1fOYM1IAWtqPOpETaGFr4TGxrj4UWB8/bwi1cyzLaxw2BRQsP0+JqgiChQ05FTg/yCJXe98LE1r4g1URX+ohrzp928t22rgQKwUSgqUgMiN2UjHZkWy0sn7z134+xgSiPmOjLH+gvWbMmq2vCa62L2V3FFEbUhR9f92NSV6cVgc98BntPG1F8x+j1vDrnFXW5cmTmAH4v8lvA== 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=ST0KX8+xDA5QtnA/oeWDlMWIZEi16TFYwUNYsCIpH5U=; b=Qygf6yl4QzFnnHmEWGbxN/PZXlGSuh/hme3Z6MGFtdzUnxCoHTXyycDP4DhS+qoTOTubKQreLHoDeIYqXtFrOnWOL9r23v/UFc2qFHzUMgL8DT58aAbGcKchPfDoct76kA21prHNLuxBBk5oBg6eHzwTacSuS3yUCytUx3sRp++p3AohFMq8b3BJkwg71FO1szPcj7vUjlW+vK5+uD43qUGwCgb1vzrC2bWTgOFHPcNYHjd/tU3SjYO3mRbmzcWra9KlD3lYCg8mhBMsZIrI1UF0iKdTL3cr4fgjFllkQjFRZc1SruEcLeRNgu+iSkmyWJVNOJlzpN7mojBsAyHkqQ== 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=ST0KX8+xDA5QtnA/oeWDlMWIZEi16TFYwUNYsCIpH5U=; b=DLn29+maMy5ssWKuwnCSmhDDfLlKGFB2aDB2rbrydkQFzPjAAhfq9DwclxRx3NgpDlw0bQDa3mVfLwomyPed+7OC9WguNm31eezrMgymCmjoo8tK9h8gNH37BdYA9OoS7BIMKOGKspvCzhkVUJHDuBMzbTjUmHFyUv+JbzxvEpw= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:49: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.023; Thu, 4 Jan 2024 05:49:02 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 08/10] btrfs: add fstest for writing to a file at an offset with RST Date: Thu, 4 Jan 2024 11:18:14 +0530 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR01CA0026.apcprd01.prod.exchangelabs.com (2603:1096:4:192::16) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: d372c4de-5b43-4944-f10f-08dc0ce8da7e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8nkcMn2eL33f5OXk4cch30GpuEhPbI/xANCP5W0oYXSUMBgn0wQmLDSk9DpW8TWNegyyXm6VAWcqvMDQgc7oulOmY9LT1GOmLgMFqvIWvzBqaZq0mYe49DeLxmBzfhzIBf67fWH6ScEOgNXdgxeQBObtcRTJ+EcnIRGwr4kKzOAdQzYX//ONOQJ/eZ+H1lnz9pqxYcxlxy5qMuYUJL6jeep/0C3nSgERfFVgL0/2mUPbKvyR6HLQgg4EwgCQh2PxkpsaQHXtTRvqffa+knAz2ngQhxUZERe209bSE5tkcjZrG/1q7P1qrpdpMC9Vn5hKb+RaApdAcycdxLEm0WkmMbAVnlcoVDfxOI/8whUmtJMofUL7ZVYqMLVLcNfrz5AN3LQKo5XLnynIDcmHG6xwi0C3kR16Q26/JB+75JfEjJDcqgerA1jBS0Qs9G4ZYOO5SPClqjNFvlY6NdI6yyrnwEp8UnYneXdefMBIBq5SFOo8EoDzzpEuNzB2UZCUUgLqhyOuVwgbDhEaRIBUoR1y8Afl49RTcUefY2xI8yid5n9dqq2ow5wuzpvUnePUx4QQ/aajLT5TZs+pbfhOTlkJNyRAojEL0C1faJS4aKKy2U8= 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(41300700001)(38100700002)(36756003)(86362001)(6506007)(6666004)(478600001)(6486002)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QeXZcnHyM70u5ASL86uVURGlczxtNLTlOY/akSRtTmgpOprr9EycdnZbkuvGzJTm55w2NYLNZxSK9tuTfC+9Ufu8QrWc3uG6dViW2YT2uEcBjiykdPiLL+oecRozhiaVqNuDq900AP6Vntsz2SYC7uRB1Z69ju099Cn7uKZtCpZfgD18DVFtSdCO5pRTCkLkFRkmrs0Eie/w+K4mkSI+ZFjVThFH09tn6m+1SU0wTe3IFGdyil5FjPDQFmprXbXS7um9Tl5DQREZJNimITagHGurV1GJcZwjkBHNkF41i1U8n1hs7YdqnD53A2zPWN0zNYa2ipCiF/0cJ11RxFHEfteYCzTc5DpPfWr3H5RBw+kfZOt8UqlTawn7k6IxXlDa9epb5pt5fS22714YL0sxD1Q2tgge54YEkPM6GOkSnpFifB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lorQfFDINy75isBDIvzfvBYoxQNd53FtBj1yi32gfa0FgXd5GS2GAuCm39U1NHOIRkMFwCYGSaddlpNuiAFG6sNUHLk+jJSg== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 3viDvoKn2D7XZ9OrFdJOTa6JhfayEayjVnifCoKAIKdX2Tfm9/8TFf03tRs8cUqbb+83BRSUKJ9gOmR9vBsLODqJPbRIL0r13WW52oW9CGwuY7tBCIpEXWc91oOy/f3RltibVRBKpyru59kVH9mrWB57aXtt146784/bAEyiC4nkZkgHwF56Jfxd2UuqRMtpIL8YAE/aqX8SEYUyJLnNkBCavp0O8PR8u/yrrwYN4X9fgZrlMeRtbyP0GgGPd/crxPqujugUstQH2cw+nQzD+P4rC+vG1JuH7HDRKKpgdmGrCwmGcKwbDCh2tFq1Lp/BaVAGi0WSJ80x0MxE/AfSJTnY+4HLWRj6RY+wApmdqZigaL/1fA8MvKfAoGGAAnpeZF0KknvH5QwqdTL895pP+wrfoUYBtHl+72DKzz9k3yPSBWsvx5z5Q11W4v/pFCdqBsb3JHtmN3QY3suxI45Lqrvaw3ZwVIGHa6IWz0YfhVg+A412bT7hHkAQY0IE/YdhF/CbFmLyy+Z97tX4moLIUPSI+7N2cOvvgyCfj8YgqIiZYd0RrY6jqak9vnoI2UVP0wUEN2zo8lojiypFOjtgmyJuFP9fEaDw9RgyNuFcIaQ= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d372c4de-5b43-4944-f10f-08dc0ce8da7e X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:49:02.0583 (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: 0csU6yKdui6pwAE8Mfdw6NYxVEfR6oKNfzCBFT8L/mUcsCNOAP2Fbz4GxOJkETeU5EGghxaRpWcmYxFFscrC7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-GUID: jlspxMQFIMr-LqvVwebXhtkrhYorfnRg X-Proofpoint-ORIG-GUID: jlspxMQFIMr-LqvVwebXhtkrhYorfnRg 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 | 61 ++++++++++++++++++++++++++++++++++++ tests/btrfs/306.out | 75 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 136 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..6e3843186fd5 --- /dev/null +++ b/tests/btrfs/306 @@ -0,0 +1,61 @@ +#! /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_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 Thu Jan 4 05:48:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510813 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 2EB9D1DFC0; Thu, 4 Jan 2024 05:49:45 +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="J16Q9iIS"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="K/cwo31k" 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 40427uEh011318; Thu, 4 Jan 2024 05:49: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=2pOM7DWikuCOhaNtCYpzoD+9wi6B3ojim5KneYpaMec=; b=J16Q9iISydvliiU6HXaP1HoWYdHocmWstCPtb8FK6Bq4x7+XgR/sVu9EigHlI+7R0LHI Oaqw2IC6MiIj2KT9PaQJ7pxPXHlddLe9aJNPSfXN75ZoUcpa9n6mKLZNZBMlMV6gfVW3 F6Nxkd1l/Ivjlqd3vm2Qs/6ITDOy3PyTfBozTuvDCSrub4fhQHh3O6XIgcFus2s/CSon bsiSYOl0SOWcEyz70eBuUFtaSaK9HwY7geigO9qEiRQaBiYhV8ejXKu5O3vJK2EHEv8d g6G6igTTkI89m84s5EbcGbx8bn51MFoXCE4RvcxFnHXlU28kb6UEqWuvlWJ2I4HtZe1V cA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vaa4cefy7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:43 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4045lcoJ015771; Thu, 4 Jan 2024 05:49:41 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpudg1r6-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=agJALdrvIY9z+/hRezoIDwAHZlydmRNZxlwulZX7pzbTV6mWxoCr7uwaJx95J5xnNiCO4M/MCtKHQHSttc3ygozKJm+0X+/XBLkYflemPdhDGMyDcfWmBJ3KXwRoJBzyoXnCjkEX58z+q5Xc16R316prwedkIwk/GxjjGkpLbMqvEbghV7yBd771i/yJd868s55/ku6bew9qKY7rJwVPatHIowTA3FW33l13AZEkpQ9xR9ncc6hbq/yXBsNIGbgtqTupzxHVKlLut96/9Y+OpEnngdRFjp5EA0cUX2np5MZBkStAsm/1kLUrImTXIdJdXX61CpbpZnLrTnsUVdkamw== 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=2pOM7DWikuCOhaNtCYpzoD+9wi6B3ojim5KneYpaMec=; b=eUEEnyWf2wZXkGiMEC9vfvnsqlOTyDHuYF+n1V4isjB3nkk0L6iR2/UW9v0jXNFYaqIJPwfVAS/e8Y4EPnQhO0LwTlfXtbJ/AsblhiwdJifvVtSxtu1wWV6kMGPPP8z3hD1SxUJc8WT0sn8wTmNiHITAdjJvAmRRtK2VNNzdhIrGqYCB+F6DuL4QCf1R68mQ43zy/ucf/8tpbG+kK1Io5mtoYM8bJVsfi4ESHmho2uFIaAUMU78z2sCRAbcZxAmXj6JKWdautaEHj0+UH2WfD3jqr3UPqaP+OuJDZStIQf+oSCIcw2KNCuVSrzxZYG1EZ6l/hlI3kRqWJbWZO+AcZg== 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=2pOM7DWikuCOhaNtCYpzoD+9wi6B3ojim5KneYpaMec=; b=K/cwo31kEvsGfqiOQfeujlioTTrKhxpkXor3F8SfFdbSACTXaHdSUtAgYZQFTTQG2M1kBqNCclSQUMD1GCyeMZEMVjKD7D9rIM+Ht0wmfWyV2suUVMtdohpv1xxrDH30dNU3xSeNQKwyXShrneEeLnswFXdKoreYRFfwXIf72WI= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:49:07 +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.023; Thu, 4 Jan 2024 05:49:07 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 09/10] btrfs: add fstests to write 128k to a RST filesystem Date: Thu, 4 Jan 2024 11:18:15 +0530 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0115.apcprd02.prod.outlook.com (2603:1096:4:92::31) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e8745eb-3fb9-4b78-0590-08dc0ce8dda0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EmWgf5mjQuaRtMGJXvY2r3FmEFbbIxfEjHdf+21iWJVW0aDkMaG2z2AdGGsfWOny+Lok4MzWylarvuGn8iDSOy5CifXgqfZtqw56bXEZAX05G7vWmAaoCkBsz1fBG/MHCRKTCqeuMeEwXAKG13o+HlOkn4iRm0Arf+khkJdHgQ8KcDNUuG4u9xowD1QPZN0aJU0t1GvN64yxqCHQG9/ewJlVDvzhqpYCpMJRa5F9jxZbtyFaHsMchvdu4nAjON29Ea0CG4TWgGY4WdiXMfYnzzkOTQ3N35/b/dQdzczcMjtFGf6eDX6p7kPb0sicAbsI2Botqa8fwqouZG+QmZ6Z+BQJY41MLglU/nNjYzkXtl2eqWX0YqPRL6A+fLXZUyuDfXn085/2GSVix541UjdeHu2mch2Db9IUZC6YGOhpZ4B7w5L6ZyuhcE2m1/nPxYAKQP0yJ4k4rt3EVpXGrmDMgYVc0nPZiuCna/j75r4ZDH7WlXeQ5CDRLs7KGN59ShPx2zVJJJab9W4CbzCyix55ivGzJaWx+ec8CJNMDTj/Ut4DwT2maMK7kup7HHKmPEwbDV+I2C3lDasIieNNBO3ABS7nY8IGXJR8MCNV8VeJyQk= 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(41300700001)(38100700002)(36756003)(86362001)(6506007)(6666004)(478600001)(6486002)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0UG9yZ0VvFTu2XzePu/yh+bD5KDoE0Skq4ZqCobC4kUzjEIjKxsI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glBUI9s8pqwcI2JbyzM3spqIGa7ojuIP17Pmh6kCXrGX6P0wH/E7FA6AgtmiJ8u5Y5nUa87jgiU5mddUuiyNcm6DXOaShs= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e8745eb-3fb9-4b78-0590-08dc0ce8dda0 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:49:07.1082 (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: xIiPEFtlAdeMqHRSOCQqR72wOHEwXi34zTc0J8rWB9qGOP5BQO+gfMnrHWF1T5F4SYsDTb/salTDwQ5qgdblPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-GUID: QWff4wK1HCww5xGfcMtav7Am49NC3weC X-Proofpoint-ORIG-GUID: QWff4wK1HCww5xGfcMtav7Am49NC3weC 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 | 58 ++++++++++++++++++++++++++++++++++++++++ tests/btrfs/307.out | 65 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 123 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..d9c39b928e00 --- /dev/null +++ b/tests/btrfs/307 @@ -0,0 +1,58 @@ +#! /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_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 Thu Jan 4 05:48:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13510816 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 453591DFDA; Thu, 4 Jan 2024 05:49: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="VyT33t0G"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="pjBfdKIk" 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 40433ojp006640; Thu, 4 Jan 2024 05:49:44 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=VT/WXzOhC0mvXN7mFGMtAg1qZxAlXLSxYBoljRC9WmI=; b=VyT33t0GIuUx5vJNpmqAQ/Rvx6ndBQVod1xiKgNAtTTsIbmJCJz2BAEKinXK5eOnyDkg 2NWuw07+kPChc/x9PZ7vMbjg6ydyqY1Gz6VtCWFhUC1xhT9oj+y8ie/KaEFQTEF1Zlqd kiWMsZUtg9b9lHfw/gAGiPKav72mZnCQouNX30DRm2c+fYPpv3MIDgTg8oQMkwf/OPCG 9UV1RDXZcM7V7xqSja3X3/R4FpL2skwZZxPmL+u4K8jkQgjr4K4Yg1gj4ZQ6HJyA/Ma7 LmwvjyKfGfEQJh7aHWmpEPohbNiRBYjcJD3Dt2Cf996rAbp1QRbJHBchG/49XMCx2zVt Ig== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3va9t26fe0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:43 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4045lcoK015771; Thu, 4 Jan 2024 05:49:42 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vdpudg1r6-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 04 Jan 2024 05:49:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lfW4i7HQOOAZsR8SNTbnUW6EKjVGEMXpLidrORMv2JTpMXLZcXlUCzaLvJ0qalknyXeKfwG8+BfSGcHWIjt/XNy/rXzSqdWxud/DOrhD41oYSvNX3jt9qS4Otn5J1q/LrXtLrPbC/mbJmws3Y9QOPtCTexVL63/iQ0dGbsyi4LoR3rap7MIpdfMZaTlKkeipld7gZYXdmWbTyA/37vGDYczrzmm1fyF4cBBvMKg/tLSolQvTQOhpMUuoC+a3nFG8vbeW3qTpb6xPffTqsVD0vWR6DE0hNtXFmUIwjbzplEGMMaIm7PTo+tCE4eHsuPDDLOMN+JLNxO0TtTZSQfxIcw== 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=VT/WXzOhC0mvXN7mFGMtAg1qZxAlXLSxYBoljRC9WmI=; b=Mj46DZk0BpvErBJx+A9c3xb8sBRDdR/VQ5l4App2O2qZgcz5ApGRHFlHArPNrD477MzdKj1OXR+abuSSJmw6ri7g7WPYmJnXedC0DeUX1uNSQWtW5eDkZn67jre1zqYuR577ZiRA7uYdtxfui8iHEkXTXdIyr2h88JDMyIgJSpxg6sMG/5rp8GeXihFgEBSDpj7+nerKCP3pVhF3QfwJUF9rkpfUItOdNT1ZhIsY+XuBgY1FOHjVCqIacDUuKY30nWBra/kietHHNfsvdcvHIDZcu/oorVNzgIm6Flkm9FuZEBTKBmnKKGL2vsHw7xZwyw/F/E4ybacmNwMzR/3AvQ== 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=VT/WXzOhC0mvXN7mFGMtAg1qZxAlXLSxYBoljRC9WmI=; b=pjBfdKIk6F3u/McJVD3Tg6QpVORizIeHoYZPHIblQOLPHVnSSvKxQAk+Ahi1FuZ+VnxDdp1o9ddB4p7T25NIrBfne5UM76BeoiEhuwOJP44oHRZ+Ca1/UV3ZN5UWBlyLVD3SRIOnadMnErYE5xKn5I7Grumo8yFJJtjthztESZo= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by PH0PR10MB5611.namprd10.prod.outlook.com (2603:10b6:510:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 05:49:11 +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.023; Thu, 4 Jan 2024 05:49:11 +0000 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com, fdmanana@kernel.org Subject: [PATCH v8 10/10] btrfs: add fstest for overwriting a file partially with RST Date: Thu, 4 Jan 2024 11:18:16 +0530 Message-Id: <268a2a2a0e389e4de088a4d85ea4dfdd91bf11ea.1704344811.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SI2P153CA0023.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::6) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|PH0PR10MB5611:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ae21a44-7371-431f-8a65-08dc0ce8dfea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G/boUEa8iSdVYIlg7zppgUDOct6ASSNnBlOl52J76gxK4Ni4dca1n5fXNSyfMYfdCUF0LdrFc8c6/IhPH70vAC//7s7vmMKj78TwWvumMLxU1fqTAH8r/uSy5O+pP9jUBW9KAFsBVlAEklvXAMqt3xvbyNFY3zCgApHd9nvSOWiLXgdPZcalqmFEt/Hvpgd2LT0dH8eCDjsOePNb0fTNXyBizehXUmMxg2J2czH7X8pkoRfgCWo+gNS0LkiIViIcrLAHpbiGuW30gt4N3SdBp3QSP3mvf4wbUDeFpMeyU5IG9Dj2GfNC+0DL4XhFL/lpQ50bjgUm0G6OyIUWYVnYEPLMsLADyd5KR9J+0MvPzXN+Zd0jH78jgTC1Akgczbg0E2OBua6J82bTjxwaMglfHPlpVbsWxfkJV2zl3aW6lKrvx7bh2Hb5c47oWNifMY9V5X8CvfqgdEADiwtsUk5wbd9GJYF4k9SrHs6L+0VnWbUDRZ67YtZtBOn1Zp0PoxQt3LgO84Dgzyk3tMVOVntwcu7rg49Abugbyq/J0xpsYtNiuCBEfgF5eW4yPPgPRO3po0nQJi7Npa3D+zkFtIf9E02voJ8Rc3FYBIYb61tmBdA= 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)(186009)(64100799003)(1800799012)(451199024)(5660300002)(2906002)(4326008)(316002)(8936002)(8676002)(66556008)(66476007)(6916009)(66946007)(44832011)(2616005)(26005)(6512007)(41300700001)(38100700002)(36756003)(86362001)(6506007)(478600001)(6486002)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mU2mfpkKA00J1nTm+HJeASM9cb6GvC2ztT/Qo/DLfl06RmhSKQSMCb42P/jMIvlYN0gyU3u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N64QkdaTT2hbOUKZrXOVKtxTHBsYBoI9/ya2rHHkMupjgRrdV5h77D0EvyG9Oexj/QUq60jHJ8H0o2mLZ4aocuQGvYr34g= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ae21a44-7371-431f-8a65-08dc0ce8dfea X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 05:49:11.1279 (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: 5JG/bY/DVobvsjIOUyFSL+cWMWYC1Ufa0A2AGLZL/mjYT9QT/qLOMFU8JySgaIfAQEkUO3ESRL+4iVO8RKtxAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5611 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=2024-01-04_02,2024-01-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401040039 X-Proofpoint-GUID: aOBoTAZnJPv-gjQvZ87s3mLunIVj0u2E X-Proofpoint-ORIG-GUID: aOBoTAZnJPv-gjQvZ87s3mLunIVj0u2E 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 | 62 ++++++++++++++++++++++++++ tests/btrfs/308.out | 106 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 168 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..ee9f15f00423 --- /dev/null +++ b/tests/btrfs/308 @@ -0,0 +1,62 @@ +#! /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_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