src/server/daemon/vfs.c

changeset 659
07b815faa6ac
parent 593
d83dced6dd80
--- a/src/server/daemon/vfs.c	Wed Dec 17 22:15:48 2025 +0100
+++ b/src/server/daemon/vfs.c	Tue Dec 30 21:44:49 2025 +0100
@@ -103,7 +103,7 @@
     vfsType->init = vfsInit;
     vfsType->create = vfsCreate;
     
-    return cxMapPut(vfs_type_map, cx_hash_key_str(name), vfsType);
+    return cxMapPut(vfs_type_map, name, vfsType);
 }
 
 VfsType* vfs_get_type(cxstring vfs_class) {
@@ -124,7 +124,7 @@
 }
 
 VFS* vfs_create(Session *sn, Request *rq, const char *vfs_class, pblock *pb, void *initData) {
-    VfsType *vfsType = cxMapGet(vfs_type_map, cx_hash_key_str(vfs_class));
+    VfsType *vfsType = cxMapGet(vfs_type_map, vfs_class);
     if(!vfsType) {
         log_ereport(LOG_MISCONFIG, "vfs_create: unkown VFS type %s", vfs_class);
         return NULL;

mercurial