]> www.infradead.org Git - users/hch/blktests.git/commitdiff
nbd: do not require nbd support to be modular
authorChristoph Hellwig <hch@lst.de>
Wed, 1 Jun 2022 06:48:35 +0000 (08:48 +0200)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 2 Jun 2022 04:24:13 +0000 (13:24 +0900)
Use _have_driver instead of _have_modules in _have_nbd as nothing requires
the nbd driver to be modular.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/nbd/rc

index 9d0e3d1ce15fdbb066a8ccd85ffd1da53686434b..118553c1d1926416856c2565269120bbdd5dbd59 100644 (file)
@@ -7,11 +7,11 @@
 . common/rc
 
 group_requires() {
-       _have_root && _have_nbd && modprobe nbd
+       _have_root && _have_nbd
 }
 
 _have_nbd() {
-       if ! _have_modules nbd; then
+       if ! _have_driver nbd; then
                return 1
        fi
        if ! _have_program nbd-server; then