Bug 481008

Summary: Access to /net/fenlason-desk/local stopped working.
Product: [Fedora] Fedora Reporter: Jay Fenlason <fenlason>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: ikent, jfeeney, jmoyer
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-21 21:58:11 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:
Attachments:
Description Flags
/etc/auto.master
none
/etc/auto.net
none
/etc/nsswitch.conf
none
/etc/sysconfig/autofs
none
/var/log/debug
none
clear the quoted flag after each character is processed none

Description Jay Fenlason 2009-01-21 17:56:57 UTC
Description of problem:
fenlason-desk exports two directories: /local and /mnt/local.  When I ls /net/fenlason-desk, autofs mounts /mnt/local there, and does not allow me to access /net/fenlason-desk/local.

Version-Release number of selected component (if applicable):
autofs-5.0.4-5.i386

How reproducible:
always

Steps to Reproduce:
1.ls /net/fenlason-desk/ on fenlason-lab1
2.
3.
  
Actual results:
home  lost+found  music  tmp

Expected results:
local mnt

Additional info:

Comment 1 Jeff Moyer 2009-01-21 18:31:46 UTC
Please see: http://people.redhat.com/jmoyer and include as much of the requested debug information as possible.

Thanks!

Comment 2 Jay Fenlason 2009-01-21 18:56:21 UTC
Created attachment 329633 [details]
/etc/auto.master

Comment 3 Jay Fenlason 2009-01-21 18:56:47 UTC
Created attachment 329634 [details]
/etc/auto.net

Comment 4 Jay Fenlason 2009-01-21 18:57:24 UTC
Created attachment 329635 [details]
/etc/nsswitch.conf

Comment 5 Jay Fenlason 2009-01-21 18:57:53 UTC
Created attachment 329636 [details]
/etc/sysconfig/autofs

Comment 6 Jay Fenlason 2009-01-21 19:07:17 UTC
Created attachment 329638 [details]
/var/log/debug

Comment 8 Jay Fenlason 2009-01-21 19:24:28 UTC
Changing /etc/auto.master to say
/net    -hosts
hides this bug.  I'm keeping it open pending an actual diagnosis and fix.

Comment 9 Jeff Moyer 2009-01-21 19:32:29 UTC
lookup_mount: lookup(program): fenlason-desk -> -fstype=nfs,hard,intr,nodev,nosuid  \#011\/\l\o\c\a\l\ \f\e\n\l\a\s\o\n\-\d\e\s\k\:\/\l\o\c\a\l\ \\ \#011\/\m\n\t\/\l\o\c\a\l\ \f\e\n\l\a\s\o\n\-\d\e\s\k\:\/\m\n\t\/\l\o\c\a\l 

Wow, what on Earth is going on there?  Ian, is this after incorporating your patch that changes from select to poll?  I wonder if that's mucked up program maps.

FWIW, here's the output from /etc/auto.net:

$ /etc/auto.net fenlason-desk
-fstype=nfs,hard,intr,nodev,nosuid \
        /local fenlason-desk:/local \
        /mnt/local fenlason-desk:/mnt/local

Comment 10 Jeff Moyer 2009-01-21 19:35:57 UTC
It looks like the quoted flag is never cleared.

Comment 11 Jeff Moyer 2009-01-21 20:03:15 UTC
Created attachment 329646 [details]
clear the quoted flag after each character is processed

This regression was introduced by autofs-5.0.4-fix-select-fd-limit.patch.  The fix is to clear the quoted flag after processing each character.  Or, at least I think that's the fix.  ;)  Jay has agreed to test this patch for us.

Comment 12 Jay Fenlason 2009-01-21 21:18:30 UTC
Yes, the patch works.

Comment 13 Jeff Moyer 2009-01-21 21:58:11 UTC
A fix for this has been committed and will appear in autofs versions 5.0.4-6 and later.

Comment 14 Ian Kent 2009-01-22 01:30:13 UTC
(In reply to comment #11)
> Created an attachment (id=329646) [details]
> clear the quoted flag after each character is processed
> 
> This regression was introduced by autofs-5.0.4-fix-select-fd-limit.patch.  The
> fix is to clear the quoted flag after processing each character.  Or, at least
> I think that's the fix.  ;)  Jay has agreed to test this patch for us.

Good catch Jeff.
Committed upstream.
Ian