Samba 2.2.8 (JYC 31-Mar-05 version) problem with records lon
ger than 1022 bytes
COLLOT Jean-Yves
jean-yves.collot at cofiroute.fr
Tue Aug 16 14:02:17 GMT 2005
You are completely right. This is due from a limitation in the size of the
buffer used for temporarily reading the records from a variable-size file,
which is (as you may guess) 1024 bytes long (which limits to an actual 122,
because of the <CR><LF>).
Why is it 1024 bytes long? I have no idea. It should have been 32769,
obviously, because RMS does not accept records bigger than 32767 anyway.
I can post a fixed version of Samba/VMS (which I'll do eventually anyway),
or you can fix it yourself if you can compile, by changing the size of the
"onerec" element of the "struct fd_entry" from 1024 to 32769. I did it, and
it works...
JYC
-----Message d'origine-----
De : samba-vms-bounces+jean-yves.collot=cofiroute.fr at lists.samba.org
[mailto:samba-vms-bounces+jean-yves.collot=cofiroute.fr at lists.samba.org] De
la part de Rodney Kimber
Envoyé : mardi 16 août 2005 05:19
À : samba-vms at lists.samba.org
Objet : Samba 2.2.8 (JYC 31-Mar-05 version) problem with records longer than
1022 bytes
I have been using the JYC version of Samba for a couple of months now
and think it is great. I have just come across a problem and wonder if
there is a fix for it or if anyone else has come across a similar
situation.
If I produce a file with lines longer than 1022 bytes then Samba will
display this file as an empty file.
For example,
This file will be displayed as an empty file.
TEST1.TXT;1 File ID: (27730,7,0)
Size: 35/112 Owner: [SYSTEM]
File organization: Sequential
Shelved state: Online
Caching attribute: Writethrough
File attributes: Allocation: 112, Extend: 100, Global buffer count: 0
No version limit
Record format: Variable length, maximum 2048 bytes, longest 1248
bytes
Record attributes: Carriage return carriage control
This file will be displayed correctly (other than the data that is now
missing because I had to shorten the lines!!!)
TEST2.TXT;1 File ID: (37305,33,0)
Size: 28/32 Owner: [SYSTEM]
File organization: Sequential
Shelved state: Online
Caching attribute: Writethrough
File attributes: Allocation: 32, Extend: 0, Global buffer count: 0
No version limit
Record format: Variable length, maximum 0 bytes, longest 1022 bytes
Record attributes: Carriage return carriage control
Thanks for your help,
Rodney Kimber
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:
http://www.catb.org/~esr/faqs/smart-questions.html
More information about the samba-vms
mailing list