From: Christoph Hellwig <hch@lst.de>
To: Benjamin Coddington <ben.coddington@hammerspace.com>
Cc: Carlos Maiolino <cem@kernel.org>,
linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org,
Chuck Lever <cel@kernel.org>, Thomas Haynes <loghyr@gmail.com>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: support for RT data checksums v2
Date: Fri, 4 Dec 2026 10:20:42 +0100 [thread overview]
Message-ID: <20261204092042.GA21446@lst.de> (raw)
In-Reply-To: <049F10AB-3AA6-4EE7-B521-A773456C94B8@hammerspace.com>
On Thu, Dec 03, 2026 at 12:11:32PM -0500, Benjamin Coddington wrote:
> On 4 Nov 2026, at 3:57, Christoph Hellwig wrote:
> > - exposing the checksum to userspace through io_uring with
> > IORING_RW_ATTR_FLAG_PI. A prototype of this exists, but it needs
> > a bit more rework of common code than I'd like for the initial
> > review.
>
> knfsd could use this too, as a pNFS data server.
Nothing pNFS about this.
>
> The flexfiles v2 draft (draft-haynes-nfsv4-flexfiles-v2, Tom's on Cc)
> has the client checksum each chunk it writes to a data server, and the
> data server stores that and hands it back on read. crc32c is one of
> the algorithms. With rtcsum underneath, nfsd could pass the client's
> crc down with the write and return the stored one on read.
And that part of the draft is insane. CRCs need to be a based NFS
feature that the a layout can use or even require, but defining them
in the layout doesn't make any sense. I've voiced that multiple times
in the working group.
> nfsd does its I/O through a kiocb, so IOCB_HAS_METADATA and a struct
> uio_meta would probably work if the file side takes it from any kiocb..
> today only block/fops.c looks at it. Is your rework headed that way,
> or is the prototype tied to io_uring?
The former.
> The draft's checksum covers a chunk header plus the payload, one per
> chunk, so it doesn't line up with a per-block crc yet. Do you already
> know of constraints there? (one tuple per fs block, crc64 for >4k
> blocks, alignment?)
The tuple in this case is just check checksum for the pure software
checksums in this series, although I also have plans to support
passing through T10 PI through the file system, in which case you'd
have the "real" PI tuple. For file system software checksums there
is one crc32c/crc64 per file system block, and your choice of which
one is done at mkfs time based on the protection profile. For real
PI, the hardware defines the protection interval, which most commonly
is the logical block.
prev parent reply other threads:[~2026-12-04 9:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261104085929.317544-1-hch@lst.de>
2026-12-03 17:11 ` support for RT data checksums v2 Benjamin Coddington
2026-12-04 9:20 ` Christoph Hellwig [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=20261204092042.GA21446@lst.de \
--to=hch@lst.de \
--cc=ben.coddington@hammerspace.com \
--cc=cel@kernel.org \
--cc=cem@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=loghyr@gmail.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