Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2013 04:00:03 GMT
From:      Berend de Boer <berend@pobox.com>
To:        freebsd-fs@FreeBSD.org
Subject:   Re: kern/161424: [nullfs] __getcwd() calls fail when used on nullfs mount
Message-ID:  <201309030400.r83403nX031721@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/161424; it has been noted by GNATS.

From: Berend de Boer <berend@pobox.com>
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 <stdio.h>
 #include <errno.h>
 #include <unistd.h>
 
 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309030400.r83403nX031721>