lkml.org 
[lkml]   [1996]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectsmbmount (ksmbfs-3.0) problem + patch
I'm used to compile my kernels

with :
SMB filesystem support (CONFIG_SMB_FS)
but _without_ :
SMB long filename support (CONFIG_SMB_LONG)

and smbmount worked fine up to 1.99.12 .

I discovered a problem with 1.99.14, and 2.0.0 too :
smbmount generates the following error :

mount error: Invalid argument
Maybe you should try to type the username and
password in UPPERCASE.

I'm forced to compile 2.0.0 _with_
SMB long filename support (CONFIG_SMB_LONG)
to get smbmount work.

Is it a bug or a feature ? :)

BTW: this is a patch against ksmbfs-3.0
it fixes the bad path bug in smbmount.c to find the smbfs module, and allows
smbmount to let kerneld load the module instead of doing this by himself,
so the module can be loaded with the "autoclean" option... But i haven't
the solution to my problem...

--- smbmount.c.orig Tue Jun 11 17:47:32 1996
+++ smbmount.c Tue Jun 11 17:49:24 1996
@@ -297,6 +297,9 @@
static int
load_smbfs()
{
+#ifdef HAVE_KERNELD
+ return(0);
+#else
FILE *fver, *ffs;
char s[1024];
char modname[1024];
@@ -345,7 +348,7 @@
}
strcpy(modname, "/lib/modules/");
strncat(modname, p, p1 - p);
- strcat(modname, "/smbfs.o");
+ strcat(modname, "/fs/smbfs.o");

/* system() function without signal handling, from Stevens */

@@ -365,6 +368,7 @@
}
}
return status;
+#endif
}

/* Check whether user is allowed to mount on the specified mount point */
--- Makefile.orig Tue Jun 11 17:55:03 1996
+++ Makefile Tue Jun 11 17:58:46 1996
@@ -5,6 +5,8 @@
UTILS = $(BINDIR)/smbmount $(BINDIR)/smbumount

CFLAGS = -Wall $(INCLUDES) -O2
+# uncomment out the following line if you have kerneld
+# CFLAGS+= -DHAVE_KERNELD
CC = gcc

all: $(UTILS)
PS: Andrew, do you have the email of the authors of ksmbfs?

---
Regis "HPReg" DUCHESNE, Engineering Student at ***** ******** *****
E-Mail > regis@via.ecp.fr
W3 > http://www.cti.ecp.fr/~duchesr8/

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.030 / U:1.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site