Re: [PATCH blktests] nbd/rc: check nbd-server port readiness in _start_nbd_server()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/18/24 4:12 AM, Shin'ichiro Kawasaki wrote:
+	# Wait for nbd-server start listening the port
+	for ((i = 0; i < 10; i++)); do
+		if nbd-client -l localhost &> "$FULL"; then
+			break
+		fi
+		sleep 1
+	done

Has it been considered to reduce the delay from one second to e.g. a
tenth of a second and to increase the number of iterations? I do not
expect it to take one second for nbd-server to start.

Thanks,

Bart.




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux