Hi, I'm writing an fastcgi application, which just gets data from stdin and appends it to ceph. Please,have a look: while (0 != (written = fread(buffer, sizeof (char), sizeof buffer, stdin))) { if (written < 0) { logger("Error: %s\n", strerror(errno)); break; } err = rados_aio_append(io, filename, comp, (const char *) buffer, written); if (err < 0) { logger("Could not schedule aio append: %s\n", strerror(-err)); rados_aio_release(comp); rados_ioctx_destroy(io); rados_shutdown(cluster); break; } else { if (len >= (100 * MB)) { if (0 == (i % (50 * MB)) && i != 0) { logger("Uploaded %d bytes", i); } } i += written; } } I test like this: curl -XPUT -T guide.pdf "http://95.211.192.129:81/upload?pics|guide.pdf" -i -v In most cases all works fine, but sometimes for (big files) , ceph/or application corrupts file. And the same file may have various sizes ceph1 07:14:46 UploadToCeph # rados -p pics stat 1024.img pics/1024.img mtime 1400335784, size 1019215872 As you can see, the size is smaller than should be. Can anyone point me what's wrong,please ? Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20140519/c18960dd/attachment.htm>