GNU bug report logs - #13028
inplace: new program

Previous Next

Package: coreutils;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Thu, 29 Nov 2012 15:24:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Reuben Thomas <rrt <at> sc3d.org>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler <at> dwheeler.com>
Subject: bug#13028: inplace
Date: Mon, 12 Sep 2022 09:07:36 +0100
[Message part 1 (text/plain, inline)]
On Mon, 16 May 2016 at 15:42, Pádraig Brady <P <at> draigbrady.com> wrote:

>
> I just don't have the time at present to complete this.
>
> I did implement ACID file replacement using POSIX APIs a while ago in:
> https://github.com/pixelb/crudini
> The commit messages there have details on fsync()ing requirements etc.
>
> Implementation in C in coreutils could also use other APIs where available
> like renameat2(..., RENAME_EXCHANGE) and exchangedata() etc.
> I noticed XFS_IOC_SWAPEXT but that's currently hardcoded
> to support only same sized replacements (for defragment apps).
> I was thinking of providing a wrapper for exchangedata() in gnulib,
> which could be leveraged where available or falling back to
> the current POSIX APIs.
>

Did you get any further? I was prompted to look up this thread by a
deprecation message for "tempfile" from Victor Porton's "inplace" script,
which I still use!

-- 
https://rrt.sc3d.org
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 337 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.