Re: [PATCH v4 16/19] selftests: ublk: support non-O_DIRECT backing files
From: Ming Lei
Date: Thu Jan 08 2026 - 07:47:40 EST
On Thu, Jan 08, 2026 at 02:19:44AM -0700, Caleb Sander Mateos wrote:
> A subsequent commit will add support for using a backing file to store
> integrity data. Since integrity data is accessed in intervals of
> metadata_size, which may be much smaller than a logical block on the
> backing device, direct I/O cannot be used. Add an argument to
> backing_file_tgt_init() to specify the number of files to open for
> direct I/O. The remaining files will use buffered I/O. For now, continue
> to request direct I/O for all the files.
>
> Signed-off-by: Caleb Sander Mateos <csander@xxxxxxxxxxxxxxx>
Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx>
Thanks,
Ming