Randall wrote:
> On Friday, October 18, 2013 7:23:26 PM UTC-4, Keith wrote:
>
>>krish wrote:
>>
>>
>>>fileinfo command of a particular file in Tandem yields many info. What is the value below "EOF" indicates?
>>
>>>Is it a total no of bytes of that particular file?
>>
>>>Can anyone pls explain.
>>
>>>If not, whr to get the total no of bytes of that file and wot is that value represent?
>>
>>
Randall wrote:
<snip>
> EDIT files (code 101), use run-length blank compression, so the EOF is likely shorter than what you will see in an editor or via NFS and SFTP.
That statement can be true of an Edit file that was created by writing lines sequentially and has not been touched after that. However, even in that state, since there are at least four bytes of overhead per line (for each line's line number) plus some other overhead, if the data does not contain many sequences of multiple blanks, the EOF easily can show a larger number than the actual number of bytes of user data. After an Edit file has been modified a bit since first being written, and if it has not been compacted again, it is quite possible that the observed EOF will be larger than the total number of bytes of user data. This is because of the way modified blocks are written to the end of the file (so as to enable recovery from a crash), making large chunks of the file be no longer in use. Compacting the file will squeeze out the unused space, returning it to a state where its EOF might, though not always, show fewer bytes than the total number of bytes of user data.
But those details aren't very important. The main point is that a Guardian Edit file is a form of structured file very different from a Unix text file, and as such, the EOF does not tell the number of bytes of user data stored in the file. That description applies only to Guardian Edit files. OSS text files are the same as Unix text files, which are just a stream of bytes with newline characters (\n) marking the ends of the lines. If you consider the newline characters to be part of the user data, then the EOF of an OSS text file does give the number of bytes of user data in the file.