Open zhongchanghui opened 5 months ago
Hi Changhui,
For nbd test failure, please check if nbdkit is installed.
For qcow2 test, please ignore it, since I plan to remove qcow2 from ublksrv project and all qcow2 related tests.
And please test rublk from user viewpoint if you are interested, which is supposed for production uses.
https://github.com/ublk-org/rublk
Thanks,
Hi,Ming
got it,thanks for reply, what is the difference between rublk and ublksrv? it looks like their commands are similar, just rublk write by rust. if I test rublk I only need to install rublk when testing,and I don’t need to compile and install ublksrv?
Thanks,
Hi,Ming
got it,thanks for reply, what is the difference between rublk and ublksrv?
rublk is re-written by Rust, and IMO, Rust is:
more productive(no need config/makefile, super-easy to integrate 3rd party lib/crate, more productive dev environment: auto-completion, grammar checker, online hint,...)
memory safe(take much less debug time, and need to design carefully)
explicit version & depend rule
central crates for package management, everyone can install one Rust lib/binary from crates easily, and everyone can upload one Rust lib/binary to crates
built-in tests
it looks like their commands are similar, just rublk write by rust.
Yes, but rublk supports more command line parameters, and Rust's command line and json processing is stronger.
if I test rublk I only need to install rublk when testing,and I don’t need to compile and install ublksrv?
There are two ways:
1) test the 'rublk' from 'crates' directly
2) test 'rublk' from github https://github.com/ublk-org/rublk
Also blktests support to run test over rublk if 'rublk' is installed on test machine, and we can add more tests for covering rublk
Thanks,
I can not create ublk device with qcow2,
# qemu-img create -f qcow2 ublk_qcow2.qcow2 10G Formatting 'ublk_qcow2.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=10737418240 lazy_refcounts=off refcount_bits=16 # ublk add -t qcow2 -f ublk_qcow2.qcow2 start dev 0 daemon failed, ret -1 # # ublk -v ublksrv 1.1-10-g6550517
Hi Changhui,
I can't reproduce the issue, maybe io_uring doesn't work in your environment?
Thanks,
Hi,Ming
not sure why happen this, but loop/null works well at that time. and now I checked new test with ublksrv, all looks good, if I hit again next time, I can share my test machine with you
Thanks,
I can not create ublk device with qcow2,
and the testing generic/003 ,generic/005 all hit this issue: