From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 13:17:39 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5EEA106566C; Tue, 20 Jan 2009 13:17:39 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 50EBE8FC12; Tue, 20 Jan 2009 13:17:39 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.3/8.14.3) with ESMTP id n0KCn3Xx064959; Tue, 20 Jan 2009 04:49:03 -0800 (PST) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.3/8.14.3/Submit) id n0KCn3sl064958; Tue, 20 Jan 2009 04:49:03 -0800 (PST) (envelope-from david) Date: Tue, 20 Jan 2009 04:49:03 -0800 From: David Wolfskill To: chandra reddy Message-ID: <20090120124903.GH17567@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , chandra reddy , freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org References: <3f95d3db0901192354s502644cdh3ecf44a4ecf3fe6f@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dQAkT9kf8uI42z2+" Content-Disposition: inline In-Reply-To: <3f95d3db0901192354s502644cdh3ecf44a4ecf3fe6f@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: tar fails on FreeBSD 7 and passes on FreeBSD 6 for the same input X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2009 13:17:41 -0000 --dQAkT9kf8uI42z2+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 20, 2009 at 01:24:41PM +0530, chandra reddy wrote: > Hi, >=20 > I am getting the following error when i run tar on a directory. >=20 > [chandra@home]$ tar zcf config-xsl.tar config-xsl/9.6 >=20 > tar: Cannot open directory > config-xsl/9.6/configuration/protocols/mpls/label-switched-path/oam/bfd-l= iveness-detection/detection-time: > No such file or directory > tar: Cannot open directory > ... > FreeBSD chandra 7.1-RC1 FreeBSD 7.1-RC1 #0: Sun Dec 7 05:57:33 UTC 2008 > root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > I have debugged libc and found that system call "fstafs" is failing and > returning -1. I believe you will find that the system call is "fstatfs". =20 > Can any one help me what is the real problem here and how to fix it? A subsequent message of your verified that the hierarchy being read was on an NFS-mounted file system. Perchance, was that NFS mount managwed by amd(8)? If so, while I do not have a "fix" for you, I am relieved to see someone else finally report these symptoms. Please see for an archived copy of my initial message in a thread reporting this. There is additional detail (including kernel trace information & how-to-repeat instructions) in subsequent messages in the thread. Also mentioned is a circumvention -- basically, crippling amd(8) so it no longer attempts to unmount() a file system. However, I was unable to re-create the symptoms at home -- only at work. A colleague at work was able to re-create the symptoms, and was intending to experiment a bit more, but he's been busy with other things recently. Please contact me (off-list, if you prefer), and we can discuss additional details. Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --dQAkT9kf8uI42z2+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkl1yD4ACgkQmprOCmdXAD1UxgCghs3BhjNOLyskf9J9ZB75CZ8+ AAIAnjq/eBOITNAvB0X6e39ks7HWLTFz =JX2n -----END PGP SIGNATURE----- --dQAkT9kf8uI42z2+--