Re: [PATCH v2 10/11] fs/buffer.c: support fsverity in block_read_full_folio()

Andrew Morton
2023-01-10T02:38:06Z

On Fri, 23 Dec 2022 12:36:37 -0800 Eric Biggers <ebiggers@kernel.org> wrote:

> After each filesystem block (as represented by a buffer_head) has been
> read from disk by block_read_full_folio(), verify it if needed. The
> verification is done on the fsverity_read_workqueue. Also allow reads
> of verity metadata past i_size, as required by ext4.

Sigh. Do we reeeeealy need to mess with buffer.c in this fashion? Did
any other subsystems feel a need to do this?

> This is needed to support fsverity on ext4 filesystems where the
> filesystem block size is less than the page size.

Does any real person actually do this?