Skip to content

Commit

Permalink
Merge pull request #287 from przemyslaw-szustak/master
Browse files Browse the repository at this point in the history
Fix issue 272 - error when echo 0 into dirty_background_bytes and dirty_bytes
  • Loading branch information
slacka authored Nov 19, 2019
2 parents 85853c7 + 988b6f5 commit 7434985
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/woeusb
Original file line number Diff line number Diff line change
Expand Up @@ -1674,8 +1674,9 @@ workaround_linux_make_writeback_buffering_not_suck(){
echo_with_color \
yellow \
'Resetting workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files.'
echo 0 > /proc/sys/vm/dirty_background_bytes
echo 0 > /proc/sys/vm/dirty_bytes

{ echo 0 > /proc/sys/vm/dirty_background_bytes; } || { echo_with_color yellow 'Warning!: command "echo 0 > /proc/sys/vm/dirty_background_bytes" - returned code $?'; }
{ echo 0 > /proc/sys/vm/dirty_bytes; } || { echo_with_color yellow 'Warning: command "echo 0 > /proc/sys/vm/dirty_bytes" - returned code $?'; }
;;
*)
printf_with_color \
Expand Down

0 comments on commit 7434985

Please sign in to comment.