lkml.org 
[lkml]   [1997]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[P] making smbfs's actually work (automount)
After struggling to get smbfs automounts to work, I finally found the
error (after just sitting down and reading all the source).

The parse_sun routines were incorrectly identifying entries like
//server/resource as being a "multipath entry".

Here's the patch, against version 0.3.12. If this has been fixed in a
later version, I apologize.

--- parse_sun.c.~1~ Tue Sep 16 20:44:50 1997
+++ parse_sun.c Sun Sep 28 16:28:14 1997
@@ -408,7 +408,7 @@
options = noptions;
p += l;
syslog(LOG_DEBUG, MODPREFIX "gathered options: %s", options);
- } else if ( *p == '/' ) {
+ } else if ( *p == '/' && *(p+1) != '/') {
/* Uh-oh, a multientry; don't support now, but ****FIXME**** */
/* We do tolerate "multientries" that only contain / though... */
if ( chunklen(p) == 1 ) {
( quick and not-so-clean hack, but small and does the job )

See!:
> cd /auto/taoc
> df -a
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda3 1466927 1028382 362744 74% /
none 0 0 0 0% /proc
automount(pid5224) 0 0 0 0% /auto
//tao/c 830336 422432 407904 51% /auto/taoc

and the map file:
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

madi -rw madi:/
boot -fstype=ext2 :/dev/hda1
nicholas -fstype=ext2 :/dev/hdb1
taoc -fstype=smbfs,-n //tao/c
[btw, I've subscribed to this list only today, and as of today and
yesterday, kernel.org was down. So I'm cc'ing this to the linux-kernel
list at vger as a safety guard - ( though, giggle, vger seems to be having
trouble this weekend, too ) ]



------------------------------------------------------------------------------
Nicholas J. Leon <nicholas@binary9.net>
"Elegance through Simplicity" http://mrnick.binary9.net/
PGP://mrnick/pgp.txt Unsolicited emailers DIE!
------------------------------------------------------------------------------
I love cats...they taste just like chicken
--
Please ignore the following addresses, they are intended to determine and
catch bulk emailers that scan newsgroups and mailing lists.

>> autofs_linux.kernel.org@catcher.binary9.net
>> linux-kernel_vger.rutgers.edu@catcher.binary9.net
>> hpa_zytor.com@catcher.binary9.net


\
 
 \ /
  Last update: 2005-03-22 13:40    [from the cache]
©2003-2011 Jasper Spaans