Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1750985rdd; Thu, 11 Jan 2024 08:12:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYh4YTQ1VgMsFp1nuct407pJK6I3ptcMbkm1+bPTr2k8XPqJ8V7rzbYGLKBmTq5t37Pr7F X-Received: by 2002:a67:e883:0:b0:467:e4c4:d238 with SMTP id x3-20020a67e883000000b00467e4c4d238mr1108741vsn.33.1704989565642; Thu, 11 Jan 2024 08:12:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704989565; cv=pass; d=google.com; s=arc-20160816; b=gBSu1FwqhEBporqT/88at3gRTX9CGyJfLVFI26PonvKPhNnZ0AVJPD/PQC/5wKxGIM I4VQNr4xJVorDTAs0d7+kB0ddA+decW7xhIjlueGBa2ucHUbnKXw6sZcy+XBcm3j7Kra 796Vqq9UOn8KWDpmU5PLQK96smsB6OamhrQB5IQ5gJ15cp1cK2MQuiJbyVCWo33tzHYz gilj/K7p7fz9O/Ms+4PTiPgDSFKHIDbKgaXCsxqKTC1dwvyTiuxXotoqQHeGoNZPO2Pq J7vOQWzrmGr6t2OF/scHGiZsXrYcqdB4h2UcY/dhw4BCOAJ28CeWZZrmkPBg7EACfgsV 2EyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:date :message-id:dkim-signature:dkim-signature; bh=RsTtolez5NfOpxlYyXDYFTxNBSDAZvQHIsCsjntxnEY=; fh=ygGQiTjluZ9lEb65xRCyYJpmhWu3+8LKHqGrMuP4a2Y=; b=0nq4YGiMjQy7Ri+YbswvApPxnawz1jXeBHIJs84TuA43zbFQGwIdvRG4sGOVoxP0Qf 4gWwv8P4BdumXMVQNbBkk32GPGA9o+KtGq4NyWkH3y0Jv8F9wGikCDswyxVhw2BM2wsI 8zpU6edfHD9iCoHM8m31cUNcqVKcOy/8BgQXK886Kcex/u3uweofFYMJ/UjlomJr/PV+ PZIho6kfx75/UQDwCCNQxLOKh0SrpfuVQiG5NJUSKS2FkpIXAF8UV4BNyuFZVYs23eV1 HlDk0GwEcUoMLdj7l3EO4hIXaW4BGIfCzDU9+UrTgSUDy0CKjFxRKtQyqlGXIxWEE6Zc IOKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=Twzddbih; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=XS4aKgkv; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel+bounces-23835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e22-20020a056102225600b00467ffd284bbsi193171vsb.728.2024.01.11.08.12.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:12:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=Twzddbih; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=XS4aKgkv; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel+bounces-23835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23835-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4F1F51C21E3F for ; Thu, 11 Jan 2024 16:12:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 571474F8B5; Thu, 11 Jan 2024 16:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Twzddbih"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="XS4aKgkv" 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 D26A015EBE; Thu, 11 Jan 2024 16:12:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40BG7TwW027131; Thu, 11 Jan 2024 16:11:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=RsTtolez5NfOpxlYyXDYFTxNBSDAZvQHIsCsjntxnEY=; b=TwzddbihyWw88ZTyOjAL3Wv9CE08PpZO1efhu13i5nMbNAtvkYaCwJWc4ux4WT13aWdt 9WpC+Ag685vJtSBVmwL74hAZTbJw+5UOa5+3Zi1lq07CbJdUE1/Uu7P0+rb7scBv4DeG akLCYxTIENWNddkACl91VLm+jjER7AcdJ5OvAe6zKj6ZMPH3qz0MQkYhnsV1lLY7Upew F3hanqxs6jn4XtqxlOUMuufImrHrYpg07PH7Lf/9IDkLQHxGuWGOcT26vOe8sVyYMdlX kLLcNDFZ5YMcBQPLF6fkhKj5MxZK34lNfehmdlZuBCpLmkT2w0JL7bEVJeiatWUI0nWZ bg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vjkjt00h8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Jan 2024 16:11:49 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 40BFfWMd035095; Thu, 11 Jan 2024 16:11:47 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2041.outbound.protection.outlook.com [104.47.57.41]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vfuu7vaf1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Jan 2024 16:11:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ig9r5pBDG+ip0YwLc7DIFki5u1ph02q2i9/nuvI0fPglWrhDNuudzMEf9tpzKO/R2jJDi6dYRqaMXM+QQtEAAbTGqq7iSGp06J/2LA4+lz9G7j4o5+CYq3QpUsRTunM6uKnRrhvP/fTKDxLwglhES7uDgbMp5FrZzl+xjHQlHgkdAGzMkIsWFz0Cx9F4O8qp6h8aIFTAoq11swg+1+ScUJ5ZJuA7JqttslO+59jQm+jaQ3k5YtfInlvEu66SMKuKSlB1Z2VhDK2cJ5oXFffXWJJ4pcGDNjDNUfVCjMUsTgpPpVx+GK1QLDyTg3JG7jsf6dLuUuM0xbUgXXrFEhv/iQ== 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=RsTtolez5NfOpxlYyXDYFTxNBSDAZvQHIsCsjntxnEY=; b=X3kbSAPgfOcLh7QZCa3kgO9iDJTtqVwxTjBtZKsqqngk5+kx/vgOQVY78J2eUfQusz6SYW4n4ZVa2RjVe0owcnzPQy4F1BqoRr20FIHLx6RuKFmu5d3gqqtaY8RuZ+gMtbOJRgEp+hdxZeilc6XGqWr1iXssDUYIGROGId9dmvQDYTJvSMealB8EVA0bWgLS3tcKloWZd9O0WVagPt1EVEZsGZ0Fflpjk2bQUE1DwEuCclA/tX62zLPto4K0vaWt2x2FgAKNYwHSOTtML/La7spnUeNZTJcPdEHs96OCqWPQnEulxGkR1qJPuY6m6a7c89xQd8LMoT5Z3ifSPTSaAA== 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=RsTtolez5NfOpxlYyXDYFTxNBSDAZvQHIsCsjntxnEY=; b=XS4aKgkvhumOj9Mdrtz9U4UghzR4XdXmDV94HgTynWLnmSC1E4ricN0XRzGo8GpVwfSQA+ladrB8EUH2ntrZa5t7P/rhqCE2PTYj5iru8KTdGJ9i29AHJjwZrJ22pjt5sMY3RXtqB+E05Dh5RTzt3io33eI8A+ZC0NiKuX30Ja0= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by IA1PR10MB7312.namprd10.prod.outlook.com (2603:10b6:208:3fc::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.19; Thu, 11 Jan 2024 16:11:45 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::5d80:6614:f988:172a]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::5d80:6614:f988:172a%4]) with mapi id 15.20.7181.015; Thu, 11 Jan 2024 16:11:44 +0000 Message-ID: <71063aee-8ba9-4a02-8c09-9b3a9982f6e0@oracle.com> Date: Thu, 11 Jan 2024 16:11:38 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 00/16] block atomic writes To: Christoph Hellwig Cc: "Darrick J. Wong" , Dave Chinner , axboe@kernel.dk, kbusch@kernel.org, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-scsi@vger.kernel.org, ming.lei@redhat.com, bvanassche@acm.org, ojaswin@linux.ibm.com References: <76c85021-dd9e-49e3-80e3-25a17c7ca455@oracle.com> <20231219151759.GA4468@lst.de> <20231221065031.GA25778@lst.de> <73d03703-6c57-424a-80ea-965e636c34d6@oracle.com> <20240110091929.GA31003@lst.de> <20240111014056.GL722975@frogsfrogsfrogs> <20240111050257.GA4457@lst.de> <20240111144537.GA9295@lst.de> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: <20240111144537.GA9295@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0489.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:13a::14) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|IA1PR10MB7312:EE_ X-MS-Office365-Filtering-Correlation-Id: 56086ad9-a7d8-4662-f594-08dc12c00154 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ze7gLeEmS+NXwY9qfCQO64RPejWTksXIZsVXHysFAbBpskkJwGjiBVbJdcbQ4c7GQoTBp9I72kmM+g5RvqiZLSmgByq89ijb0OSsGTu++2M5nOaXS0E1DX0CqPNcYyMZm4NNVbfHSev3QhhNzXouLc7Cd0e3JGXp7oyVvfYdnBYzQJ6bj7LFCPx0MyCnjH/4iVvqUFHoHflbVV/+HtxdvxOGScPsaH4sDokibBKt4vyrCVCKMQFYaCguhsIYqy7vcxZ8EKmSPKESwLUPtAdXWvR15NsW5zTcV7bSOGta55o25Veut/T3RYzZfn18YlYymFLLEX2JZFY7Y1fMmQUnv0zfewHaQ7rxfd6BOb8OCftJ7VZ9AOxsFOnUcQZnkSDGwX6CL0ajCkGxZTY1dJDqLaPbArqAtwL7XqKpYkkJmer6su/UeMbSS2QU0s8B3anzGeb2AtRFokEFcP4W1TwcUOaAfXAtl3NAzjqnNViDkzi55TWQOMk5utocHFtZ0UePK8qKp1q+BpTDned1/QFgT1BheUhpWmJ+Acw6U8tdciWbvYdHtf1f3vJU3v2JEc/mIzYfya9VoZ9AGodMK9uGFLzzF3BHisYaoS9tXlFuNb9l5YVYSdm7K1MAl5M4SAu2Gd+177uX01taCu7mDkVdaA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4313.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(346002)(366004)(396003)(376002)(39860400002)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(5660300002)(8676002)(8936002)(4326008)(7416002)(54906003)(2906002)(316002)(6916009)(31686004)(66476007)(66946007)(66556008)(6506007)(6512007)(6666004)(6486002)(478600001)(36916002)(36756003)(2616005)(26005)(83380400001)(31696002)(41300700001)(86362001)(38100700002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Z3RXdnh6UVQ3enA0ZTExblZpOVdxblFPUk4xWk8ySmpEd01iWXR0SmFiY1RM?= =?utf-8?B?NUZ5b2R5VUwrQjdwcU5IMWxZL3RTemxMQ3JLZVgwbVQzUHRRb2hRL3BEWlFM?= =?utf-8?B?cXBuVEQxVmY2ZUNrUFBSS243K0wrNmxUM2dCQWEzeTl4RjFMcSswWngydith?= =?utf-8?B?NmdWRTJnZnpRREJNSGZVcTc5dEQ3L2ZTTk9EejJ5MGFCY01McFJrSnVBZTVC?= =?utf-8?B?OHhoblE1U0dQb1Q3Yi9sUWFIZmFScFYwOGFuWnlWK1VVNlZ0cEpvRUd3WVJj?= =?utf-8?B?UnVOZXpKbEZxWGV3TDdqdmVHS2xWa24xM3ppNE5TTUpSdEdpVGRyQldQZktM?= =?utf-8?B?SFBMTmRGUXNLUGFHWVQ5M3pFTnJ3QnV6L2dlbTZndllDVFFVa2VrMlNyY1hv?= =?utf-8?B?MG9IZWxVTk9pSjhxU3VkRFRrTHJKTTNuZmFLWTdJZTM3dWFSenE5bHFJVGRQ?= =?utf-8?B?YzQ3Z09yK2NJaGRZeHozWkZ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gIG22pGOGBl1uXw7OqRidiOswSY0z/zjleohuTwT9xo6jexVXJ6OnxojAY/b0YRP3NLddGYX5fvtIHuP6bQ0BWKxYemodIzM2cycDTLmWdmLPqXm89O1oAhtDR0wU5D1MxQWI0Sf/NqV7dTPRktpuUiuMIQXK6x6BabaWApfeGjXBkBQoc1MlG1ylCEOrgQ8eXF+WfvfzOsbvjap/FN8jbMwpFY79IqW4fZVRvu76pQnDqnZKKmZdBSSUGIFMsB7uD9HQoVEh45RSB4sCCF8KipMJu1AURgfeNtBkZd1OJa4wMw2zXTgCkOEw4OOk1eRhkKZRgfMn8NacQtM4FPKoN8UY6NeJxuGWBd6w/C7c5hyEZQidb7xA6UsXoIqO7j+WjOSd2zca+cq28hfN6zj4XmZpFWjyCH3UQbGBVbNReOWeStx4dranyCsRp1iwHVPZNN0NTDg6lRHS4zQ1IKdbm6EiSRQdytzRc9eUSOpVfxdozBpTiCJu53HjaOpgrRNVcoWDMwlfMtr/OoUPO8IPqeUispOeb+RlQl6nTpXUSPrk75Ki9KeUEPPgCoY+s= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56086ad9-a7d8-4662-f594-08dc12c00154 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 16:11:44.8532 (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: zgiJ2YNNLSEJKGfa8ctjA5T83wZwb40p1ilGhDkm3kGHIohoIWHGtW/kAW8EhqsuLhG4DRvPSiU8rBsneCY9Cw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7312 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-11_09,2024-01-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401110126 X-Proofpoint-GUID: RP-kC1povyI7qo6ITG8_JDRtnD9ZSXlk X-Proofpoint-ORIG-GUID: RP-kC1povyI7qo6ITG8_JDRtnD9ZSXlk > >>> I think this still needs a check if the fs needs alignment for >>> atomic writes at all. i.e. >>> >>> struct statx statx; >>> struct fsxattr fsxattr; >>> int fd = open('/foofile', O_RDWR | O_DIRECT); >>> >>> ioctl(fd, FS_IOC_GETXATTR, &fsxattr); >>> statx(fd, "", AT_EMPTY_PATH, STATX_ALL | STATX_WRITE_ATOMIC, &statx); >>> if (statx.stx_atomic_write_unit_max < 16384) { >>> bailout(); >>> } >> >> How could this value be >= 16384 initially? Would it be from pre-configured >> FS alignment, like XFS RT extsize? Or is this from some special CoW-based >> atomic write support? Or FS block size of 16384? > > Sorry, this check should not be here at all, we should only check it > later. > >> Incidentally, for consistency only setting FS_XFLAG_WRITE_ATOMIC will lead >> to FMODE_CAN_ATOMIC_WRITE being set. So until FS_XFLAG_WRITE_ATOMIC is set >> would it make sense to have statx return 0 for STATX_WRITE_ATOMIC. > > True. We might need to report the limits even without that, though. Could we just error the SETXATTR ioctl when FS_XFLAG_FORCEALIGN is not set (and it is required)? The problem is that ioctl reports -EINVAL for any such errors, so hard for the user to know the issue... Thanks, John