[Bug 243551] Cannot checkout src tree in automounted $HOME

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 16 Jul 2021 20:27:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243551

--- Comment #7 from Robert Wing <rew@FreeBSD.org> ---
(In reply to Edward Tomasz Napierala from comment #6)

Sure would be nice to have the errno from the failing mount program             
as it exited.                                                           

I *think* this is what's happening:                                     

1. automountd creates /home/foobar because it needs somewhere to mount the
   NFS filesystem.
2. automountd attempts to mount_nfs /home/foobar from the nfs server.   
3. The nfs server replies with ENOENT (because /home/foobar doesn't exist on
   server).
4. the mount program fails and exits with status code 1.                
5. automountd doesn't remove /home/foobar after the failed mount.       

One thought is; make a special case for NFS that checks if the target           
directory is exported from the NFS server before attempting to mount it.        
Not sure how feasible this idea is, I'd have to look into it..or maybe one  
of you know off the top of your head?                                   

I imagine an issue with doing a special case for NFS is that other automounted
filesystems may have similar problems as well (but in a different way). Still,
given that NFS seems to be the largest use-case for automount, it may be worth
making a special case for NFS, even if the problem remains for other
automounted filesystems. This is why I mentioned it would be nice to have the
errno from the failing mount program as it *might* work as general solution for
other automounted filesystems.

-- 
You are receiving this mail because:
You are the assignee for the bug.