Re: [Qemu-devel] [PATCH] qemu_file: use fwrite() correctly

2014-02-11 Thread Juan Quintela
Paolo Bonzini wrote: > Il 11/02/2014 22:56, Juan Quintela ha scritto: >> fwrite() returns the number of items written. But when there is one >> error, it can return a short write. >> >> In the particular bug that I was tracking, I did a migration to a >> read-only filesystem. And it was able to

Re: [Qemu-devel] [PATCH] qemu_file: use fwrite() correctly

2014-02-11 Thread Paolo Bonzini
Il 11/02/2014 22:56, Juan Quintela ha scritto: fwrite() returns the number of items written. But when there is one error, it can return a short write. In the particular bug that I was tracking, I did a migration to a read-only filesystem. And it was able to finish the migration correctly. fwr

[Qemu-devel] [PATCH] qemu_file: use fwrite() correctly

2014-02-11 Thread Juan Quintela
fwrite() returns the number of items written. But when there is one error, it can return a short write. In the particular bug that I was tracking, I did a migration to a read-only filesystem. And it was able to finish the migration correctly. fwrite() never returned a negative error code, nor z