From owner-freebsd-bugs@freebsd.org Fri Mar 24 10:37:59 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5CC6CA2CD7 for ; Fri, 24 Mar 2017 10:37:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7B8581DCB for ; Fri, 24 Mar 2017 10:37:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v2OAbxH5097541 for ; Fri, 24 Mar 2017 10:37:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 218059] NFS loop back mount of a tmpfs file systems fail, if the tmpfs file systems was mounted with "-o" Date: Fri, 24 Mar 2017 10:37:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pho@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Mar 2017 10:37:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218059 Bug ID: 218059 Summary: NFS loop back mount of a tmpfs file systems fail, if the tmpfs file systems was mounted with "-o" Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: pho@FreeBSD.org $ cat localhost2.sh=20 #!/bin/sh [ $# -eq 0 ] && localhost=3D127.0.0.1 [ $# -eq 1 ] && localhost=3Dlocalhost uname -a ifconfig | grep inet [ -d /mnt2 ] || mkdir /mnt2 mount | grep -q mnt2 && umount /mnt2 mount | grep -q mnt && umount /mnt echo echo "tmpfs with no \"-o\" argument": mount -t tmpfs tmpfs /mnt echo "mount -t nfs -o retrycnt=3D1 $localhost:/mnt /mnt2" mount -t nfs -o retrycnt=3D1 $localhost:/mnt /mnt2 mount | grep mnt mount | grep -q mnt2 && umount /mnt2 mount | grep -q mnt && umount /mnt echo echo "Now with tmpfs, size=3D512m:" mount -t tmpfs -o "size=3D512m" tmpfs /mnt echo "mount -t nfs -o retrycnt=3D1 $localhost:/mnt /mnt2" mount -t nfs -o retrycnt=3D1 $localhost:/mnt /mnt2 mount | grep mnt mount | grep -q mnt2 && umount /mnt2 mount | grep -q mnt && umount /mnt $ ./localhost2.sh=20 FreeBSD t2.osted.lan 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r315388M: Thu Mar= 16 08:20:21 CET 2017 pho@t2.osted.lan:/usr/src/sys/amd64/compile/PHO amd64 inet 192.168.1.109 netmask 0xffffff00 broadcast 192.168.1.255=20 inet6 fe80::21e:67ff:fe56:b69b%igb0 prefixlen 64 scopeid 0x1=20 inet6 ::1 prefixlen 128=20 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3=20 inet 127.0.0.1 netmask 0xff000000=20 tmpfs with no "-o" argument: mount -t nfs -o retrycnt=3D1 127.0.0.1:/mnt /mnt2 tmpfs on /mnt (tmpfs, local) 127.0.0.1:/mnt on /mnt2 (nfs) Now with tmpfs, size=3D512m: mount -t nfs -o retrycnt=3D1 127.0.0.1:/mnt /mnt2 [tcp] 127.0.0.1:/mnt: Permission denied tmpfs on /mnt (tmpfs, local) $ --=20 You are receiving this mail because: You are the assignee for the bug.=