Rollback of all changes made for smbfs 2.23

The proof of concept implementation of mapping the original UTF16LE-encoded path names to hashed versions in the ISO-Latin-1 encoded space did not scale well and would invariably leak memory because there is no safe way to determine whether such a mapping was no longer needed. There appears to be no way to make this work robustly.

So, sadly, I removed Tygre's implementation.

We are back to square one with mapping UTF16LE-encoded path names, and also with mapping file/directory names longer than 107 characters (Windows names can be up to 127 characters long).
This commit is contained in:
Olaf Barthel
2024-09-23 14:40:20 +02:00
parent 8fd5546afd
commit cd9dce733f
10 changed files with 74 additions and 466 deletions
-6
View File
@@ -18,8 +18,6 @@
#include <smb/smb_mount.h>
#endif /* _SMB_MOUNT_H */
#include "kvs.h"
struct smb_server
{
enum smb_protocol protocol; /* The protocol this
@@ -90,10 +88,6 @@ struct smb_server
/* olsen (2018-06-11): Prefer SMB core protocol commands over NT1 commands. */
int prefer_core_protocol;
// Tygre 21/05/15: Stores for UTF16le strings and their sizes
KVSstore *latin1_to_utf16le_bytes;
KVSstore *latin1_to_utf16le_sizes;
};
#endif