From nobody Fri Jul 16 20:27:43 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E568E12A43CC for ; Fri, 16 Jul 2021 20:27:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GRN8Z5c3Lz4p0s for ; Fri, 16 Jul 2021 20:27:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A7D7823430 for ; Fri, 16 Jul 2021 20:27:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 16GKRgnw085489 for ; Fri, 16 Jul 2021 20:27:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16GKRguf085488 for bugs@FreeBSD.org; Fri, 16 Jul 2021 20:27:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 243551] Cannot checkout src tree in automounted $HOME Date: Fri, 16 Jul 2021 20:27:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rew@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243551 --- Comment #7 from Robert Wing --- (In reply to Edward Tomasz Napierala from comment #6) Sure would be nice to have the errno from the failing mount program=20=20= =20=20=20=20=20=20=20=20=20=20=20 as it exited.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 I *think* this is what's happening:=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 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.=20=20= =20 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.=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 5. automountd doesn't remove /home/foobar after the failed mount.=20=20=20= =20=20=20=20 One thought is; make a special case for NFS that checks if the target=20=20= =20=20=20=20=20=20=20=20=20 directory is exported from the NFS server before attempting to mount it.=20= =20=20=20=20=20=20=20 Not sure how feasible this idea is, I'd have to look into it..or maybe one= =20=20 of you know off the top of your head?=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 I imagine an issue with doing a special case for NFS is that other automoun= ted filesystems may have similar problems as well (but in a different way). Sti= ll, given that NFS seems to be the largest use-case for automount, it may be wo= rth 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 t= he errno from the failing mount program as it *might* work as general solution= for other automounted filesystems. --=20 You are receiving this mail because: You are the assignee for the bug.=