Skip to content

Commit

Permalink
Change blocksize from 4096 to 512
Browse files Browse the repository at this point in the history
  • Loading branch information
PORTE Loïc committed Dec 4, 2018
1 parent b13c614 commit 83e1bae
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 83e1bae

Please sign in to comment.