Skip to content

Add atomicity keyword arg to mv #41584

@Keno

Description

@Keno

mv is often specified to be atomic on file systems, i.e. programs opening
a file will either get a handle to the old file or the new file, but never see an
incomplete file in the middle. This is highly useful for live replacing configuration
files, etc. Our mv is best-effort atomic, but if the files to be moved are on
different file systems, this can have problematic consequences. For example,
if the destination filesystem is full, it is possible for the destination file to
get truncated at arbitrary points. It would be better to have an option for
mv to automatically fail if atomicity cannot be guaranteed (maybe that
should even be the default).

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis change adds or pertains to documentationfilesystemUnderlying file system and functions that use it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions