Commit Graph
24 Commits
Author SHA1 Message Date
obarthel 6b58679cd6 Updated to version 1.130
Please keep in mind that this is still a development version and might surprise you (not necessarily in a good way).

Do not let me discourage you to build and test this version, although there will be some risks involved such as data corruption or loss of data.
2018-05-13 13:42:16 +02:00
obarthel 8daa23142f Updated to version 1.129
Please keep in mind that this is still a development version and might surprise you (not necessarily in a good way).

Do not let me discourage you to build and test this version, although there will be some risks involved such as data corruption or loss of data.
2018-05-13 12:42:55 +02:00
obarthel 914915496f Small fixes for the AmigaOS4 build to work 2018-05-11 11:27:57 +02:00
obarthel d2a15bd63e Updated to version 1.128
Please keep in mind that this is still a development version and might surprise you (not necessarily in a good way).

Do not let me discourage you to build and test this version, although there will be some risks involved such as data corruption or loss of data.
2018-05-11 11:07:04 +02:00
Olaf Barthel 632429a309 Updated to version 1.125
Please keep in mind that this is still a development version and might surprise you (not necessarily in a good way).

Do not let me discourage you to build and test this version, although there will be some risks involved such as data corruption or loss of data.
2018-05-08 11:34:47 +02:00
obarthel 047be4f827 Updated to version 1.124
Please keep in mind that this is still a development version and might surprise you (not necessarily in a good way).

Do not let me discourage you to build and test this version, although there will be some risks involved such as data corruption or loss of data.
2018-05-06 16:50:02 +02:00
obarthel 61735b08c2 Updated to version 1.222
Please keep in mind that this is still a development version and might surprise you (not necessarily in a good way).

Do not let me discourage you to build and test this version, although there will be some risks involved such as data corruption or loss of data.
2018-05-05 15:03:16 +02:00
obarthel cd5669e306 Updated to version 1.120
Please keep in mind that this is still a development version and might surprise you (not necessarily in a good way).

Do not let me discourage you to build and test this version, although there will be some risks involved such as data corruption or loss of data.
2018-05-01 15:14:45 +02:00
obarthel 6b384df83d Updated the copyright text 2018-04-11 12:19:24 +02:00
obarthel 94cf193a82 Updated to version 1.116 2017-12-23 09:11:11 +01:00
Olaf Barthel 6138e558b1 Added WRITEBEHIND and PREFERWRITERAW options
Recalculated the maximum message size for write/write raw operations.

Recalculated the threshold value for the message size beyond which raw write operations are likely more effective than plain write operations.

Maximum payload size for raw write operations is now limited both by the maximum raw write size and the maximum buffer size. The smaller of both quantities is used.
2016-04-26 15:50:55 +02:00
Olaf Barthel 53a68fb5c8 The raw read/write operations now respect the "maximum raw size" limit set by the server.
Fixed decoding of maximum buffer size; this used to come out as 0, which made smbfs switch back to the default minimum supported (1024 bytes).

Corrected use of the maximum raw write size as the size used by the client to perform raw reads with. The maximum allowed are 65535 bytes for a raw read request. Likewise, the maximum raw write size is 65535 bytes, too.

Simplified the raw read portion of smba_read() by removing the test that avoids dropping into a read loop below. The loop handles the special case well.

Recalculated the overhead for SMB_COM_READ. It's still 52 bytes, but now the documentation states how this number comes about.

Recalculated the overhead for SMB_COM_WRITE. It's 52 bytes and not 56 bytes.
2016-04-17 11:36:36 +02:00
Olaf Barthel f2bbe982fe Failed writes need to update file size / Dir cache cleanup simplification
Because the series of write operations are not wrapped into transactions, the cached file size needs to be updated if at least one write access succeeds.

Simplified the directory cache cleanup.
2016-04-09 11:22:32 +02:00
Olaf Barthel 8b0b3fbe48 Version bump 2016-04-04 14:22:20 +02:00
Olaf Barthel d12b42b72c blkmod becomes capabilities 2016-04-02 12:29:40 +02:00
Olaf Barthel 7a4cf2e4ec Fixes for smba_read() and smba_write()
smba_read() failed to register the number of bytes read successfully by smb_proc_read_raw(). This made all files appear to be empty.

smba_write() did not update the offset value correctly if the first smb_proc_write() call had succeeded.
2016-04-01 16:35:33 +02:00
Olaf Barthel 2adfed7183 success/error handling is now consistent
All functions now follow a consistent error reporting scheme. A negative return value always indicates an error condition. A return value of 0 always indicates success, except for the few functions which have to return a count of bytes or directory records upon success.

Previously, it was hard to tell what function returned what in case of error, which led the bugs in smba_write() and smba_read(), neither of which gracefully fell back on SMB_COM_WRITE/SMB_COM_READ, respectively if SMB_COM_WRITE_RAW/SMB_COM_READ_RAW failed.

State variables are now named according to their respective purpose where possible. Previously, it was "rval", "errnum", "result" which were used almost interchangeably regardless of purpose.
2016-03-30 13:48:32 +02:00
Olaf Barthel 3562ef9720 Bug fix for random junk in first file data
smba_read() could end up returning random junk in the first few bytes of a file because the make_open() return value tripped it up.
2016-03-27 18:14:30 +02:00
Olaf Barthel b0df941186 Indentation cleanup 2016-03-27 12:27:36 +02:00
Olaf Barthel 0e0565c3e9 Reworked the maximum transmission size handling
The maximum transmission size can now be limited to values smaller than 65530, but it must be larger than 8000 bytes.
2016-03-06 15:27:03 +01:00
Olaf Barthel 88eaf1b0b9 Slight increase for maximum transmission buffer size
smba_connect() max_xmit now set to 65534 (used to be 65530).
2016-02-28 13:38:40 +01:00
Olaf Barthel 6e005b37c2 Added support for raw SMB over TCP
The original implementation would wrap the SMB session setup into a NetBIOS layer, which Windows Vista, Windows 7, etc. no longer support out of the box. The updated code in smba_connect()/smba_start() now supports raw SMB over TCP which is better supported by contemporary software than the legacy NetBIOS option.
2016-02-21 13:41:41 +01:00
Olaf Barthel 2f0d253eef smbfs 1.72 (14.4.2009)
- In proc.c, smb_setup_header() initialized the SMB header length
  field with a number which was too large by four bytes. Consequently,
  what was later committed to the wire would have four trailing data
  bytes which could contain random values. This often didn't do much
  harm, but it seems that Samba 3.2.4 and Windows Vista don't like the
  looks of the trailing junk bytes.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/amiga-smbfs/trunk@20 26594b9e-b914-4e86-b7a1-9402bd427170
2009-04-14 11:33:05 +00:00
Olaf Barthel ed8def5209 - Initial import into sourceforge.net CVS.
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/amiga-smbfs/trunk@3 26594b9e-b914-4e86-b7a1-9402bd427170
2005-05-24 13:22:14 +00:00