Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3827906rdh; Tue, 28 Nov 2023 05:09:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4FMDGfgIO7DnsXFPm5my9qpIBL7Ob46DwdSN1/ReUbim0q90AGAcPSHem0OFjgcwf32/n X-Received: by 2002:a05:6870:e0c9:b0:1f5:b5ca:438d with SMTP id a9-20020a056870e0c900b001f5b5ca438dmr17498890oab.16.1701176955535; Tue, 28 Nov 2023 05:09:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701176955; cv=none; d=google.com; s=arc-20160816; b=HemgL5soUb1AXE2/LTIfb+IfGRHeFlfAV7vusWYqSLczGyc6ASK7TIRJ91lQm+VKSy M26SqUCl/YPqQ4B4Js4y08z8sHDH+10Ov3g8iyVIp8qgxbR0/BXIv5jg+QLwAZrHTFcn 7gIi5+KzkltqCgxt1tVOs3rmQd6K5+lcUuve4m4iH8rsiVglsnzLpaKEnwnpAYPbRko0 OM2A10j5hmfJOSzHnYlBkNwuw92I3mQ7XNqR5+JYm3bpYOGdxtiH/iyKRjmBwkGetSA3 oGmzwombSNtpTK2S9JsOECJ0PKdtTFTmMYqDMPJDQGTu/VRabA3rUYgMt6yoYNiyQ/oJ qHJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pshlG/ligFC3SogVXAgvzFoPKpHGsgj01FPvrJM8Hhs=; fh=LevYvI8DSPOhucjBRgEi1K7yI11MatW5CLys6GDsbTo=; b=PLfJLhZXm7v5W/3ZfBCplrpaz6eTXDKMzhc/jByM5BJYPefMfeBFmQSLHI9bkmIwO0 tqkBAEXerPmvPem65vQOzeQ/H/HSooDHvxRzUQsRaoJeYn+8WdJmNxVji1Xaz8H5MAUX WyuIK7PEuVrHBhZo4cY1gxDbSBPHIeUiAUnRUtFRUtrzy9FUcIyKK/sKXpeE0UnX+huD 9Rdx24o4eWmQaQipAVPOMJGCGv9ibk3H/MpfGn+6+FCmWGeVqol5KZ25m5h6XZE6Mocy ufNnAUZtqA6Mac7al7NHFjnneTMpGX6jj8CHK00m73ikLuIBpF2gQ7yfM3+2LwHHfL+N aLXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NwnXKNMq; spf=pass (google.com: domain of linux-nfs+bounces-124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-124-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r39-20020a05687017a700b001fa4dcd8dc2si1847858oae.28.2023.11.28.05.09.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 05:09:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NwnXKNMq; spf=pass (google.com: domain of linux-nfs+bounces-124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-124-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E9D83282530 for ; Tue, 28 Nov 2023 13:09:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C67F356442; Tue, 28 Nov 2023 13:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="NwnXKNMq" X-Original-To: linux-nfs@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F332BD4B for ; Tue, 28 Nov 2023 05:09:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pshlG/ligFC3SogVXAgvzFoPKpHGsgj01FPvrJM8Hhs=; b=NwnXKNMqKbb8/6H93AE5QmyPwH g7NPryLcu+hKXy3t/13Pg5jnNGom3SxJqHClWJ/g5xx6ShQGezXr/7IOE3ypItBHSrb2DiFQJNLrA XChUQcCcYcuvk/Jo2CPsf+/xUZGhkff8jGJrIeZt37F0jzH4Exgm5bGpw4igrPvvqpcIqBFT2ER6S K14f4G2+vddICFFuovGIAilwb/MCw0XZebTd1Joe1X582pqztSxPny1ncTm0H5ZawdNTJzLVDw1k0 WNjXk+UdhNPcHhrNne4n2ji2GdnVBvi9FJ1zrmgYxUZoLLR3E00QAS/yXq2KYsk3WwhgQkbrPAs5z tgG08Rcw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r7xpp-005MHD-0L; Tue, 28 Nov 2023 13:09:05 +0000 Date: Tue, 28 Nov 2023 05:09:05 -0800 From: Christoph Hellwig To: Rick Macklem Cc: Chuck Lever III , Christoph Hellwig , Tao Lyu , Trond Myklebust , Linux NFS Mailing List Subject: Re: Question about O_APPEND | O_DIRECT Message-ID: References: <2d948b43fa625952e50589e4bedf9551df7ee112.camel@hammerspace.com> <7d2d17e4d3904d29b75fadcfd916b2a3@epfl.ch> <7E2914D2-B9AB-4280-9A44-875DA8B58328@oracle.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Mon, Nov 27, 2023 at 05:50:49PM -0800, Rick Macklem wrote: > > > Well, it does support O_RDWR|O_APPEND, just not with O_DIRECT? > > > > > > Btw, I think an APPEND operation in NFS would be a very good idea, and > > > I'd love to work with interested parties in the IETF on it. > It is not easy to deal with w.r.t. RPC retries. Indeed. > I suppose a NFSv4.2 extension that either requires (or strongly > recommends) persistent sessions might work? > (Persistent sessions should pretty well guarantee an RPC is not > redone on the server.) I guess so. That of course actually means we rely on a viable implementation of persistent sessions. The Linux server doesn't support them, and I'm not sure which servers actually do.