Displaying 9 results from an estimated 9 matches for "fvprintf".
Did you mean:
fprintf
2017 Jul 06
2
[New Patch] Fix disk corruption when writing
...call.
>>>>
>>>
>>> That's likely because you aren't writing enough to actually trigger a write to disk during the write. Writes are buffered, and the error doesn't happen
>>> until the buffer is written.
>> I can confirm this behavior with fvprintf(). Small and medium sized writings
>> on /dev/full don't trigger error and 1MB does.
>>
>> But if fprintf() is used, it returns a negative value from the very first byte written.
> I correct myself. In my test, fprintf() returned -1 for another reason (connection was alread...
2017 Jul 05
2
[New Patch] Fix disk corruption when writing
...values
>> returned by the vfprintf call.
>>
>
> That's likely because you aren't writing enough to actually trigger a write to disk during the write. Writes are buffered, and the error doesn't happen until
> the buffer is written.
I can confirm this behavior with fvprintf(). Small and medium sized writings
on /dev/full don't trigger error and 1MB does.
But if fprintf() is used, it returns a negative value from the very first byte written.
Serguei.
> The regression test I put in had this problem; I'm working on MacOS and Windows, so I never got to act...
2017 Jul 07
2
[New Patch] Fix disk corruption when writing
...s likely because you aren't writing enough to actually
>>>>> trigger a write to disk during the write. Writes are buffered,
>>>>> and the error doesn't happen
>>>>> until the buffer is written.
>>>> I can confirm this behavior with fvprintf(). Small and medium sized
>>>> writings
>>>> on /dev/full don't trigger error and 1MB does.
>>>>
>>>> But if fprintf() is used, it returns a negative value from the very
>>>> first byte written.
>>> I correct myself. In my t...
2017 Jul 05
0
[New Patch] Fix disk corruption when writing
...rned by the vfprintf call.
>>>
>>
>> That's likely because you aren't writing enough to actually trigger a write to disk during the write. Writes are buffered, and the error doesn't happen
>> until the buffer is written.
> I can confirm this behavior with fvprintf(). Small and medium sized writings
> on /dev/full don't trigger error and 1MB does.
>
> But if fprintf() is used, it returns a negative value from the very first byte written.
I correct myself. In my test, fprintf() returned -1 for another reason (connection was already closed
at this...
2017 Jul 06
0
[New Patch] Fix disk corruption when writing
...>>
>>>>
>>>> That's likely because you aren't writing enough to actually trigger a write to disk during the write. Writes are buffered, and the error doesn't happen
>>>> until the buffer is written.
>>> I can confirm this behavior with fvprintf(). Small and medium sized writings
>>> on /dev/full don't trigger error and 1MB does.
>>>
>>> But if fprintf() is used, it returns a negative value from the very first byte written.
>> I correct myself. In my test, fprintf() returned -1 for another reason (conne...
2017 Jul 06
0
[New Patch] Fix disk corruption when writing
...se you aren't writing enough to actually
>>>>>> trigger a write to disk during the write. Writes are buffered,
>>>>>> and the error doesn't happen
>>>>>> until the buffer is written.
>>>>> I can confirm this behavior with fvprintf(). Small and medium sized
>>>>> writings
>>>>> on /dev/full don't trigger error and 1MB does.
>>>>>
>>>>> But if fprintf() is used, it returns a negative value from the very
>>>>> first byte written.
>>>> I c...
2017 Jul 07
0
[New Patch] Fix disk corruption when writing
...to actually
>>>>>>>> trigger a write to disk during the write. Writes are buffered,
>>>>>>>> and the error doesn't happen
>>>>>>>> until the buffer is written.
>>>>>>> I can confirm this behavior with fvprintf(). Small and medium sized
>>>>>>> writings
>>>>>>> on /dev/full don't trigger error and 1MB does.
>>>>>>>
>>>>>>> But if fprintf() is used, it returns a negative value from the very
>>>>>>>...
2017 Jul 07
2
[New Patch] Fix disk corruption when writing
...t writing enough to actually
>>>>>>> trigger a write to disk during the write. Writes are buffered,
>>>>>>> and the error doesn't happen
>>>>>>> until the buffer is written.
>>>>>> I can confirm this behavior with fvprintf(). Small and medium sized
>>>>>> writings
>>>>>> on /dev/full don't trigger error and 1MB does.
>>>>>>
>>>>>> But if fprintf() is used, it returns a negative value from the very
>>>>>> first byte written....
2017 Jul 05
3
[New Patch] Fix disk corruption when writing
I tried the newest patch, but it does not seem to work for me (on Linux).
Despite the check in Rconn_printf, the write.csv happily writes to
/dev/full and does not report an error. When I added a printf("%d\n", res);
to the Rconn_printf() definition, I see only positive values returned by
the vfprintf call.
Cheers,
j.
On 4 July 2017 at 21:37, Duncan Murdoch <murdoch.duncan at