]> www.infradead.org Git - users/sagi/blktests.git/commit
nbd/002: repeat partition existence check for ioctl interface
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Wed, 17 Apr 2024 10:42:09 +0000 (19:42 +0900)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 25 Apr 2024 11:16:17 +0000 (20:16 +0900)
commitf6f2d82b32b06d725b72ebb6b2efb72d5805bcf9
treed2e789141b081eedfd5beecdea95c4bd2d353f81
parentc53c8b0d8dff55ddd875a3beda6de5d177d0957c
nbd/002: repeat partition existence check for ioctl interface

When nbd-client is set up with the ioctl interface, it takes some time
for the nbd driver and the block layer to complete the partition read.
The test script calls stat command for the /dev/nbd0p1 device to check
the partition exists as expected. However, this stat command is often
called before the partition read completion, then causes the test case
failure.

To avoid the test case failure, repeat the partition check a few times
with one second wait.

Tested-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/nbd/002