[Info-vax] Re; Spiralog, RMS Journaling (was Re: FREESPADRIFT)

Johnny Billquist bqt at softjar.se
Mon Jun 27 10:14:22 EDT 2016


On 2016-06-27 15:33, VAXman- at SendSpamHere.ORG wrote:
> In article <nkr6sn$put$1 at Iltempo.Update.UU.SE>, Johnny Billquist <bqt at softjar.se> writes:
>> On 2016-06-24 20:27, VAXman- at SendSpamHere.ORG wrote:
>>> I've been trying to get Johnny to realize that there are numerous ways to
>>> represent records in a VMS file.
>>
>> And you don't have to explain that to me. I know way more of the
>> internals of these things than I should have to. While not specifically
>> RMS-32, I've modified RMS-11, ODS-1 and FCS enough to last me a
>> lifetime, and it's really no different than RMS-32.
>
> ... and I know way more of the RMS internals that two lifetimes -- so what?

Right. So let's stop this pissing game.
Just as I know that you know these things, stop trying to assume that I 
don't.

>>>  In *ix files (text files) there's a <LF>
>>> at the end of a string of bytes.  VMS can support that and, if he were to
>>> use that for his files, he'd be able to get the sought after byte size.  I
>>> don't see why there's such an inability to comprehend it.
>>
>> What I can't comprehend is your inability to understand the problem, or
>> that having one more piece of metadata actually could help for a rather
>> common case. We've been running this thread way longer than I ever
>> though was needed.
>>
>> Who cares that VMS can store files in a compatible way with Unix. That
>> is not the answer. You still have various files, in various formats on
>> VMS. How it looks under Unix have no bearing.
>
> But it does because that's the size of the data you want to present to it!

What is "it" here? I've been pointing out in a number of posts now that 
sometimes having the file size in bytes is useful. And the examples I've 
used have been some internet protocols.

So all that's been in my argument is: VMS, all kind of files. And 
internet protocols, as specified by some RFCs. No Unix within sight.

>> You are making the assumption that the files will be created
>> specifically for the need and purpose, which is a broken assumption. A
>> web server is expected to serve content that already exist. And if that
>> is created by a text editor (not uncommon), it will normally be in the
>> standard format for a text file, which on VMS would be variable sized
>> sequential records with implied CRLF.
>
> EDT and TPU will edit that file just fine if it's RFM=STM or RFM=STMLF. ;)

Just because it can does not mean that all your files will be.

> So, you have a file that was created with a VMS editor.  Let's, for argument
> here, say that's VFC.  You want to send that file in HTTP with a byte count
> that properly accounts for <record's data>+<LF> for each record; yet, you do
> NOT know how each record has been stored.  That's impossible!  If you can do
> that, please let me know how as I might like to apply that logic to winning
> the Powerball.  Short of reading the file, in the case of a VFC, to know the
> size of EACH record, there's no way to accurately define the file size in a
> format that you expect for it to be transferred.  You can't be that obtuse!

Nitpick: The correct format is <record's data>+CR+LF.

And... uh... If the file is in VFC, then you have the information on how 
each record is stored. Which part is it that you miss here? We know the 
storage format on disk. We would like to know the number of bytes this 
would be represented as, talking about just the file content, without 
any metadata.

If we were to imagine how a system would implement this, the obvious 
answer is that as each record is written, the byte size added to the 
file would be the length of the record, plus two bytes for the implied 
CR+LF.
This is not rocket science.

And if you have a file with variable length records without the implied 
CR+LF, then the size added would become just the length of each record 
written. The actual space needed on disk is obviously different than 
this number, for a bunch of reasons and cases. But that's irrelevant. If 
you were to read the file, these are the number of bytes you would get 
(assuming you add your CR+LFs as assumed, at the end of each record, if 
the file attributes said so).

>> This is the most common type of files you will be serving. Going on
>> rambling about how it will be easy to figure out the length of a
>> stream-LF file could be more irrelevant.
>>
>> However, I'm glad you at least acknowledge that getting the plain
>> content size of a sequential record file in VMS is not possible without
>> actually reading through the file. Because this is the problem, and this
>> is what you need to do today.
>
> I *never* acknowledged that!  The file's content size is available without
> having to read through the file; however, there are several record formats
> available to save that file; thus, the size will be different.  Now, if YOU
> believe that a record is <byte><byte><byte>...<byte><byte><LF>, I might NOT
> and their record formats affirm that.

Sigh. So now you are again claiming that the size of the user data of a 
sequential record file in VMS, with implied CRLF attributes can be 
calculated somehow?
Please tell me how you do that.

> What you want is the byte count size that's based upon what or how you will
> normalize the data in its transfer.  That would be misleading to those of us
> looking at that the file as it's stored on the media.  There is VMS CONVERT
> which can modify the record format; each target format can add or subtract
> to and from the size of the input.  Which is correct?  You haven't YET said
> which one.

Please read this reply twice before answering.

	Johnny




More information about the Info-vax mailing list