[LTP] [PATCH] loop: Increase bsize variable from unsigned short to unsigned int

Jan Stancek jstancek@redhat.com
Tue Aug 27 07:18:09 CEST 2024


On Tue, Aug 27, 2024 at 5:22 AM Li Wang <liwang@redhat.com> wrote:
>
> This change allows the loopback driver to handle larger block sizes
> and increases the consistency of data types used within the driver.
> Especially to mactch the struct queue_limits.logical_block_size type.
                        ^^ small typo here, extra 'c' in "match"
>
> Also, this is to get rid of the LTP/ioctl_loop06 test failure:
>
>   12 ioctl_loop06.c:76: TINFO: Using LOOP_SET_BLOCK_SIZE with arg > PAGE_SIZE
>   13 ioctl_loop06.c:59: TFAIL: Set block size succeed unexpectedly
>   ...
>   18 ioctl_loop06.c:76: TINFO: Using LOOP_CONFIGURE with block_size > PAGE_SIZE
>   19 ioctl_loop06.c:59: TFAIL: Set block size succeed unexpectedly
>
> Link: https://lists.linux.it/pipermail/ltp/2024-August/039912.html
> Signed-off-by: Li Wang <liwang@redhat.com>
> Cc: Jan Stancek <jstancek@redhat.com>
> Cc: John Garry <john.g.garry@oracle.com>
> Cc: Damien Le Moal <dlemoal@kernel.org>
> Cc: Stefan Hajnoczi <stefanha@redhat.com>

Reviewed-by: Jan Stancek <jstancek@redhat.com>



More information about the ltp mailing list