Date: Fri, 24 Mar 2017 10:37:59 +0000 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" Message-ID: <bug-218059-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218059-8>