From owner-freebsd-questions@freebsd.org Tue Oct 2 12:06:52 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB47E10C1E9A for ; Tue, 2 Oct 2018 12:06:51 +0000 (UTC) (envelope-from felix@audiofair.de) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64D82898E1 for ; Tue, 2 Oct 2018 12:06:50 +0000 (UTC) (envelope-from felix@audiofair.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1538482008; s=strato-dkim-0002; d=audiofair.de; h=Date:Message-ID:Subject:From:To:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=SJFof+mKs6ztDatiEFfj96yHCSvbiUd8OOyMzSRfGxQ=; b=hSaJKV4WaE4vxyV/sn8UIHPV8CTQYvqQaaZcK3NpdZmdpVMl5lEXbQgYEu7Kn35NN2 Q7d+gpLp3ob6S3UHl5JY4Gx5n2adm8n6xVpi6bxPtWy+JFtkaKTXBQDVuVhomjA6/LUU 63yDb7muE7rRVj6xgeqoJ2bHmb5l14njuNtyx5li47ffDHwCSfevppHsRMAiexgt/It1 gTx3ENa9a4KBvG+9sTMEf7JZPMHHTGHALTWuJi2ayb01HKJQBH/e4nq1kxaOSxmhtcnt Ao4erD/jJbicvoc+jOKZGN11IPkPH2r+pP8Wc9e7cL/FRT4SrPdWHKsTV5ZaIB6IexV6 p3Xg== X-RZG-AUTH: ":KmkIfFiIeuobF0ryGDOmdGJTFqaolieRUBb8W7m+IlV8fTgVa1I1Nqqo7krB5f1Lh7qYsj9h" X-RZG-CLASS-ID: mo00 Received: from [131.188.166.118] by smtp.strato.de (RZmta 44.2 AUTH) with ESMTPSA id k02759u92C6m0zr (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Tue, 2 Oct 2018 14:06:48 +0200 (CEST) To: freebsd-questions@freebsd.org From: Felix Winterhalter Subject: Mountd inconsistent error messages on nfsv4 mount Message-ID: <3079ec6e-6c28-a1d0-c12f-8a9114b8f02c@audiofair.de> Date: Tue, 2 Oct 2018 14:06:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: de-DE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2018 12:06:52 -0000 I am currently trying to set up nfsv4 exports on one of our servers. I found out that the mountd output for denied mount requests is a bit weird. For example my exports file looks like this: V4: /shareroot clients /shareroot -alldirs clients Which would export the shareroot to the netgroup clients. So far so good. Mounting this directory works also fine from clients. Now if I try to mount a directory which does not exist with a mountline like this: mount -t nfs4 server:/directorywhichdoesnotexist I get an error in mountd along the lines: mountd[8274]: mount request denied from :: for /directorywhichdoesnotexist which is a bit hard to debug especially with multiple trees. I would have expected mountd to know about the V4 root and printed it accordingly as: mountd[8274]: mount request denied from :: for /shareroot/directorywhichdoesnotexist Is there any reason why it doesn't do that? This also happens when a subdirectory does not exist. It maps the complete tree back to / instead of the V4 root.