From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:44023 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751751AbeEDS3z (ORCPT ); Fri, 4 May 2018 14:29:55 -0400 Received: by mail-pg0-f65.google.com with SMTP id k11-v6so14855468pgo.10 for ; Fri, 04 May 2018 11:29:55 -0700 (PDT) Date: Fri, 4 May 2018 11:29:53 -0700 From: Omar Sandoval To: "Michael Kerrisk (man-pages)" Cc: Al Viro , linux-fsdevel@vger.kernel.org, Linus Torvalds , linux-api@vger.kernel.org, kernel-team@fb.com, Xi Wang Subject: Re: [RFC PATCH v3 0/2] fs: add AT_REPLACE flag for linkat() Message-ID: <20180504182953.GC26037@vader> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Apr 27, 2018 at 02:00:39PM +0200, Michael Kerrisk (man-pages) wrote: > Hello Omar, > > On 04/24/2018 08:19 AM, Omar Sandoval wrote: > > From: Omar Sandoval > > > > Hi, Al, > > > > This is a respin of my linkat() AT_REPLACE series, previously posted > > here: > > > > https://patchwork.kernel.org/patch/9636735/ > > https://patchwork.kernel.org/patch/9636733/ > > > > There are no changes since v2, only a rebase onto v4.17-rc2 and some > > minor additions to the commit messages. > > > > The goal is to allow for updating a file atomically in-place with an > > O_TMPFILE like so: > > > > - open temporary file with O_TMPFILE > > - write temporary file contents > > - fsync temporary file > > - atomically replace permanent location with the temporary file > > - fsync parent directory > > Could we have an example program with the next revision please, > perhaps as part of the commit message? > > And, please also some text suitable for inclusion in the linkat(2) > manual page. > > Thanks, > > Michael Yes, I'll do that.