Skip to content

Commit

Permalink
Merge pull request #197 from bewiwi/nbd_512
Browse files Browse the repository at this point in the history
Change blocksize from 4096 to 512
  • Loading branch information
superseed authored Dec 7, 2018
2 parents b13c614 + 83e1bae commit 108f438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Linux/tree-common/functions
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ attach_nbd_device() {
if [ $timeout -ne 0 ]; then
log_begin_msg "Attaching device with a $timeout seconds timeout"
log_end_msg
run timeout -t $timeout @xnbd-client --blocksize 4096 --retry=$retries ${nbd_host} ${nbd_port} /dev/nbd${device}
run timeout -t $timeout @xnbd-client --blocksize 512 --retry=$retries ${nbd_host} ${nbd_port} /dev/nbd${device}
else
run @xnbd-client --blocksize 4096 --retry=$retries ${nbd_host} ${nbd_port} /dev/nbd${device}
run @xnbd-client --blocksize 512 --retry=$retries ${nbd_host} ${nbd_port} /dev/nbd${device}
fi


Expand Down

0 comments on commit 108f438

Please sign in to comment.