public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Ming Lei <ming.lei@redhat.com>
To: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Subject: Re: [PATCH blktests] ublk/rc: prefer to rublk over miniublk
Date: Wed, 8 Nov 2023 17:07:59 +0800	[thread overview]
Message-ID: <ZUtP76DdikBTiBLs@fedora> (raw)
In-Reply-To: <snthk6n6lo6767rjxj7xeevgbebxjqzxhwouacqr3335l4xat3@hv4zaukbl6dy>

Hi Shinichiro,

On Tue, Nov 07, 2023 at 05:28:59AM +0000, Shinichiro Kawasaki wrote:
> On Nov 06, 2023 / 08:35, Ming Lei wrote:
> > Add one wrapper script for using rublk to run ublk tests, and prefer
> > to rublk because it is well implemented and more reliable.
> > 
> > This way has been run for months in rublk's github CI test.
> > 
> > https://github.com/ming1/rublk
> > 
> > Signed-off-by: Ming Lei <ming.lei@redhat.com>
> 
> Hi Ming, it sounds good to shift from miniublk to rublk to reduce maintenance
> work of src/miniublk. I tried the patch, and found a couple of points to
> improve.
> 
> 1) The issue that Akinobu addressed with the commit 880fb6afff2e is observed
>    with rublk. I did the command lines below which were noted in his commit:
> 
>     $ modprobe -r scsi_debug
>     $ modprobe scsi_debug sector_size=4096 dev_size_mb=2048
>     $ mkfs.ext4 /dev/sdX
>     $ mount /dev/sdX results/
>     $ ./check ublk/003
> 
>   Then I observed the failure:
> 
> ublk/003 (test mounting block device exported by ublk)       [failed]
>     runtime  0.529s  ...  0.465s
>     --- tests/ublk/003.out      2023-09-05 10:05:11.292889193 +0900
>     +++ /home/shin/Blktests/blktests/results/nodev/ublk/003.out.bad     2023-11-07 14:18:44.966654288 +0900
>     @@ -1,2 +1,3 @@
>      Running ublk/003
>     +got , should be ext4
>      Test complete
> 
>   So I guess rublk needs a similar fix as Akinobu did for miniublk.

Indeed, rublk-loop just takes default 512B as block size, and will fix
it in v0.1.3, which also supports to specify logical/physical block size
from command line, and I will add one test case in blktests later.

> 
> 
> 2) I ran shellcheck for src/rublk_wrapper.sh and observed two meesages:
> 
>     src/rublk_wrapper.sh:10:12: error: Double quote array expansions to avoid re-splitting elements. [SC2068]
>     src/rublk_wrapper.sh:32:7: note: Double quote to prevent globbing and word splitting. [SC2086]
> 
> I suggest to apply changes below to make the script a bit more robust.

Good catch, thanks for the improvement, and I will integrate it into
next version.



Thanks,
Ming


      reply	other threads:[~2023-11-08  9:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-06  0:35 [PATCH blktests] ublk/rc: prefer to rublk over miniublk Ming Lei
2023-11-07  5:28 ` Shinichiro Kawasaki
2023-11-08  9:07   ` Ming Lei [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=ZUtP76DdikBTiBLs@fedora \
    --to=ming.lei@redhat.com \
    --cc=linux-block@vger.kernel.org \
    --cc=shinichiro.kawasaki@wdc.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