From: "Theodore Tso" <tytso@mit.edu>
To: Sean Smith <defendthedisabled@gmail.com>
Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,
linux-btrfs@vger.kernel.org, dsterba@suse.com,
david@fromorbit.com, brauner@kernel.org, osandov@osandov.com,
almaz@kernel.org, hirofumi@mail.parknet.co.jp,
linkinjeon@kernel.org
Subject: Re: [RFC PATCH v1 0/6] provenance_time (ptime): a new settable timestamp for cross-filesystem provenance
Date: Sun, 5 Apr 2026 18:54:42 -0400 [thread overview]
Message-ID: <20260405225442.GA1763@macsyma-wired.lan> (raw)
In-Reply-To: <20260405195007.1306-1-DefendTheDisabled@gmail.com>
On Sun, Apr 05, 2026 at 02:49:56PM -0500, Sean Smith wrote:
>
> 1. Application atomic saves destroy xattrs. Programs that save
> via write-to-temp + rename() replace the inode, permanently
> destroying all extended attributes. Only the VFS sees both
> inodes during rename -- no userspace mechanism can intercept
> this and copy metadata across.
The VFS could potentially copy the xattr on a rename, no?
> 2. Every tool in the copy chain must explicitly opt in to xattr
> preservation. cp requires --preserve=xattr, rsync requires -X,
> tar requires --xattrs. Each missing flag causes silent data
> loss. Transparent preservation through arbitrary tool flows
> is not achievable in userspace.
But this is true for your proposed ptime as well. You have to change
every single tool to copy over the ptime. Worse, you have to change
the format of tar in a non-standard on-disk format change to support
this new ptime timestamp. And rsync will require a non-standard
protocol change to support the new timestamp.
> Atomic saves are the default behavior of mainstream applications
> (LibreOffice, Vim, Kate, etc.).
You will also have to change mainstream applications to copy ptime
from the original file to the file.new before the atomic rename.
Using ptime doesn't change this. So you will need to make this
non-standard, Linux-specific change to all of these mainstream
applications.
Is it worth it? It's a huge amount of cost being spread across a very
large part of the open source ecosystem just this fairly narrow use
case. Personally, I'm not convinced it's worth the effort.
- Ted
prev parent reply other threads:[~2026-04-05 22:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-05 19:49 [RFC PATCH v1 0/6] provenance_time (ptime): a new settable timestamp for cross-filesystem provenance Sean Smith
2026-04-05 19:49 ` [PATCH 1/6] vfs: add provenance_time (ptime) infrastructure Sean Smith
2026-04-05 19:49 ` [PATCH 2/6] btrfs: add provenance time (ptime) support Sean Smith
2026-04-05 19:49 ` [PATCH 3/6] ntfs3: map ptime to NTFS creation time with rename-over Sean Smith
2026-04-05 19:50 ` [PATCH 4/6] ext4: add dedicated ptime field alongside i_crtime Sean Smith
2026-04-05 19:50 ` [PATCH 5/6] fat: map ptime to FAT creation time with rename-over Sean Smith
2026-04-05 19:50 ` [PATCH 6/6] exfat: map ptime to exFAT " Sean Smith
2026-04-05 22:54 ` Theodore Tso [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260405225442.GA1763@macsyma-wired.lan \
--to=tytso@mit.edu \
--cc=almaz@kernel.org \
--cc=brauner@kernel.org \
--cc=david@fromorbit.com \
--cc=defendthedisabled@gmail.com \
--cc=dsterba@suse.com \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linkinjeon@kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=osandov@osandov.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox