From owner-freebsd-hackers Wed Oct 2 3:28: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EF7C37B401 for ; Wed, 2 Oct 2002 03:28:06 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F22B43E75 for ; Wed, 2 Oct 2002 03:28:05 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id A241F3ABD6E; Wed, 2 Oct 2002 12:29:16 +0200 (CEST) Date: Wed, 2 Oct 2002 12:29:16 +0200 From: Pawel Jakub Dawidek To: freebsd-hackers@freebsd.org Subject: Bug in nullfs? Message-ID: <20021002102916.GN19012@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="lYtTbTuCUQxZgETo" Content-Disposition: inline X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.6-STABLE i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --lYtTbTuCUQxZgETo Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello hackers. I have found something like this, but I'm not sure of this is a bug in nullfs: # cd # mkdir dir1 # mkdir dir1/dir2 # mkdir dir3 # mount_null dir1 dir3 Now simple proram "test": -----[ start ]----- #include #include #include #include #include #include int main(int argc, char *argv[]) { char buf[MAXPATHLEN]; /* I just want to be sure that I'm calling syscall directly. */ if (syscall(SYS___getcwd, buf, sizeof buf) !=3D 0) { fprintf(stderr, "%s: %s\n", argv[0], strerror(errno)); exit(1); } printf("out: [%s]\n", buf); exit(0); } -----[ end ]----- And now: # cd ~/dir3/dir1 # /path/to/test /path/to/test: Not a directory Problem is here (line 571 in /sys/kern/vfs_cache.c): if (vp->v_dd->v_id !=3D vp->v_ddid) { numcwdfail1++; free(buf, M_TEMP); return (ENOTDIR); } If "dir3" is for example NFS mount-point there are no problems. Any ideas? --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --lYtTbTuCUQxZgETo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPZrKfD/PhmMH/Mf1AQE24gP/RSm+gnBGo3npTQe8hL4tXQjkM32mfZkb 79SJ0w8WssRFHy5Q/FsjIa6I+UYunQDE2dGylyVvzEYKwsr7Ia0hvCefKsiiTJoF 9Dr/OVuXVG7MtJ0+kQFNx6zadI9YaxT4knf/bpNJQI354CM+1PBshDKjYAE1QrV8 KkcYJ193kKc= =Z7Bp -----END PGP SIGNATURE----- --lYtTbTuCUQxZgETo-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message