Skip to content

Commit 108f438

Browse files
authored
Merge pull request #197 from bewiwi/nbd_512
Change blocksize from 4096 to 512
2 parents b13c614 + 83e1bae commit 108f438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Linux/tree-common/functions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ attach_nbd_device() {
265265
if [ $timeout -ne 0 ]; then
266266
log_begin_msg "Attaching device with a $timeout seconds timeout"
267267
log_end_msg
268-
run timeout -t $timeout @xnbd-client --blocksize 4096 --retry=$retries ${nbd_host} ${nbd_port} /dev/nbd${device}
268+
run timeout -t $timeout @xnbd-client --blocksize 512 --retry=$retries ${nbd_host} ${nbd_port} /dev/nbd${device}
269269
else
270-
run @xnbd-client --blocksize 4096 --retry=$retries ${nbd_host} ${nbd_port} /dev/nbd${device}
270+
run @xnbd-client --blocksize 512 --retry=$retries ${nbd_host} ${nbd_port} /dev/nbd${device}
271271
fi
272272

273273

0 commit comments

Comments
 (0)