Skip to content

Commit

Permalink
bugfix to actually stop writing when full
Browse files Browse the repository at this point in the history
  • Loading branch information
0ki committed Sep 13, 2024
1 parent d916f6e commit 6016dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filldisk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo Filling up `pwd`...
while true; do
x=$(( $x + 1 ))
dd if=/dev/urandom bs=1024 count=4194304 status=progress of="$base.$x"
[ -z $? ] && break
[ $? -gt 0 ] && break
done

echo Disk seems full. Or not. See for yourself:
Expand Down

0 comments on commit 6016dc9

Please sign in to comment.