diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-10 10:58:55 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-10 10:58:55 +0100 |
commit | 5afd63a631f49112ac305ea1532dd226e9c39d12 (patch) | |
tree | a784d6c135a15acc44dad94539820fae054e51d9 /libbb/loop.c | |
parent | d1df1a709f05a737d2477a08eea8c743e83f8f8f (diff) | |
download | busybox-5afd63a631f49112ac305ea1532dd226e9c39d12.tar.gz |
dd: exit with 1 if last write was incomplete
$ busybox dd if=/dev/zero of=/dev/loop0 bs=100M count=8; echo $?
8+0 records in
7+1 records out
805220352 bytes (767.9MB) copied, 0.464010 seconds, 1.6GB/s
1 <=========== FIXED
function old new delta
write_and_stats 96 97 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/loop.c')
0 files changed, 0 insertions, 0 deletions