[Info-vax] Re; Spiralog, RMS Journaling (was Re: FREESPADRIFT)
David Froble
davef at tsoft-inc.com
Tue Jun 21 14:53:18 EDT 2016
Johnny Billquist wrote:
> On 2016-06-19 04:35, David Froble wrote:
>> Jan-Erik Soderholm wrote:
>
>>> Yes, but that is a simple calculation with 1 block = 512 bytes.
>>> It does not correctly display partially filled blocks. I guess
>>> that what most here are talking about is the size up to the
>>> marker. Convering the used/allocated number of blocks is simple.
>>>
>>> Jan-Erik.
>>
>> I would suggest "what does it matter?"
>>
>> It's not like some other file is going to use the unused portion of some
>> disk block, or, as suggested, unused part of 4096 bytes ....
>
> No. But if you implement FTP, or a web server, or any number of other
> tools/programs, they are expected to report file sizes in bytes, and the
> byte count should be *accurate*. Even one byte off is not acceptable.
> And that becomes costly if your system do not keep that information, and
> you have to calculate it yourself.
>
> Johnny
>
I've done some communications in the past. I usually use a handshake similar to:
Sender> Hey, I've got x bytes to send to you
Receiver> Ok, go ahead
Sender> sends string
Receiver> Ok, got x bytes
If any of the above goes South, then start over from the beginning
With timeouts, of course ..
So, yes, I understand.
More information about the Info-vax
mailing list