Bug 9286

Summary: automount cannot mount "generic" filesystems
Product: [Retired] Red Hat Linux Reporter: jhorva
Component: autofsAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6.1CC: jhorva
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-03-02 22:37:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jhorva 2000-02-09 22:43:44 UTC
My Redhat 6.1 installation on an i386 fails to automount remote Windoze
filesystems of type smbfs. The auto.XXXX file looks like this:

shared
-fstype=smbfs,uid=nt,gid=users,filemod=664,dirmod=775,login=itsme,passwd=se
cret	://windoze/shared

When attempting to access the directory, I get a message in syslog:

Feb  9 17:38:34 sporty automount[15703]: cannot find mount method for
filesystem smbfs

My snooping around yields a potential problem at line 43 in file
daemon/mount.c in the autofs-3.1.3 source package. Seems to be a simple
logic problem. Note my comment in the snippet of code below:

...
  mod = open_mount(modstr = fstype, NULL);
  if ( !mod ) {
    for ( ngp = not_generic ; *ngp ; ngp++ ) {
      if ( !strcmp(fstype, *ngp) ) break;
    }
    if ( ! *ngp ) /*<<<<< (Joe Horvath 2/9/00) should read: if ( *ngp ) */
      mod = open_mount(modstr = "generic", NULL);
    if ( !mod ) {
      syslog(LOG_ERR, "cannot find mount method for filesystem %s",
fstype);
      return -1;
    }
  }
...

Thanks...Joe Horvath
jhorva.com

Comment 1 Nalin Dahyabhai 2000-02-10 14:10:59 UTC
This is due to an inconsistency between autofs and the mount command, which is
fixed in Raw Hide and our just-released beta.  If you upgrade your autofs,
mount, and samba-client packages to the newer versions, and change the fstype
to "smb", all should be well.  Here's the relevant snippet from my map file:
tmp		-fstype=smb,uid=nalin,gid=nalin	://blade/tmp

Comment 2 Nalin Dahyabhai 2000-02-10 14:11:59 UTC
Whoops, the inconsistency is between autofs and the various versions of Samba
2.0.x, where the smbmount command changed both names and options, and then
changed back due to complaints about this sort of thing....

Comment 3 Nalin Dahyabhai 2000-03-02 22:37:59 UTC
This should work correctly with autofs-3.1.4-4 from Raw Hide if you set the
fstype to "smb".  Please reopen this bug if you continue to have difficulties
after upgrading.