From owner-freebsd-fs@FreeBSD.ORG Tue Sep 3 04:00:03 2013 Return-Path: Delivered-To: freebsd-fs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 80FEA363 for ; Tue, 3 Sep 2013 04:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 55AF321F2 for ; Tue, 3 Sep 2013 04:00:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r834030d031722 for ; Tue, 3 Sep 2013 04:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r83403nX031721; Tue, 3 Sep 2013 04:00:03 GMT (envelope-from gnats) Date: Tue, 3 Sep 2013 04:00:03 GMT Message-Id: <201309030400.r83403nX031721@freefall.freebsd.org> To: freebsd-fs@FreeBSD.org Cc: From: Berend de Boer Subject: Re: kern/161424: [nullfs] __getcwd() calls fail when used on nullfs mount X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Berend de Boer List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2013 04:00:03 -0000 The following reply was made to PR kern/161424; it has been noted by GNATS. From: Berend de Boer To: bug-followup@FreeBSD.org, v.haisman@sh.cvut.cz Cc: Subject: Re: kern/161424: [nullfs] __getcwd() calls fail when used on nullfs mount Date: Tue, 03 Sep 2013 15:53:06 +1200 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3cPG6dhSiJ0Xq4uUIATFsmLvXWcRkoajv Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have exactly the same problem in FreeBSD 9.1-RELEASE (almost, it runs on AWS so some minor patches). I have an ZFS pool, and nullfs mounted it. I wrote a simple C program which exhibits the problem: #include #include #include int main () { void *r; char c[1024]; r =3D getcwd(c, 1024); printf ("r =3D %p, errno =3D %i\n", r, errno); printf ("dir =3D %s\n", c); } Result: r =3D 0x0, errno =3D 13 dir =3D Very annoying, as I have my home directories on /u1/home and remount them on /home to avoid having to rename a bunch of stuff. All the best, Berend. --3cPG6dhSiJ0Xq4uUIATFsmLvXWcRkoajv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSJV0jAAoJEKOfeD48G3g5cukQAK6YVzIBffLP8SLefAPLSpr8 7Rcu52TIx5/afJgYJc9sYCv/1tEG5g8QIGO7j1/b2lxlFPSj+qOlltm/T4wErET2 +Nsb+dn+CE+ZNimeel9QstuqUFrs5P+OvlfthOtIG0vhD7bPdFpSq1rjFhzC2+ww tvE/48eBhtO0oQ4ek/lhOmnipSy/FKdGF0N4rAKdTyjPOLPn4OzyDEFoG1xJ0OQp OM3E5LbilssIjzBxgKnfxLBtbHwqEsotyrCcAZyA7qSZxhs7tN4KR2C+K78QIOmG H20RdnffbcbLyWRza6SA2tpe+pGZGeV1umPlmJNKVNk5vgp1pPerhZAyv8es3EzF 0ip0fRO4D6/7sfgq1wC4oUnlZTqEbahgm6B3dkherDwowJAw3WzqR5geQ6e/xcj4 lEYgs1suCKVDRwbmo1aHnG1FbS0iYeYiJCnwQG0gRala71Z+JGCKmo6MuE9kMEWR SJehMtlfaRJX35R1yTmm/D5VUuhkwcpwv/WWok6OjAT0sqxB3vSeShCu4o8aojGK LccenGdCl28gzKt25K50uK+itN+XD8RL//G/gHnoIQX+cDjlmXw111iGnkRbCuSp f6PIPbPaeHH2y8Kgl33nIQZ5Df3YtxHy+Cr7BRoNPnWjHn1okQTEZHRFPlTSd5Eq HHK2WzOnk6eIX9UIN5kM =mF/w -----END PGP SIGNATURE----- --3cPG6dhSiJ0Xq4uUIATFsmLvXWcRkoajv--