Re: tar fails on FreeBSD 7 and passes on FreeBSD 6 for the same input

2009-01-20 Thread David Wolfskill
On Tue, Jan 20, 2009 at 01:24:41PM +0530, chandra reddy wrote:
> Hi,
> 
> I am getting the following error when i run tar on a directory.
> 
> [chan...@home]$ tar  zcf config-xsl.tar  config-xsl/9.6
> 
> tar: Cannot open directory
> config-xsl/9.6/configuration/protocols/mpls/label-switched-path/oam/bfd-liveness-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
> r...@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".
 
> 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
-- 
David H. Wolfskill  da...@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.


pgpRgd7rWpQt3.pgp
Description: PGP signature


Re: tar fails on FreeBSD 7 and passes on FreeBSD 6 for the same input

2009-01-20 Thread chandra reddy
 Hi Doug,

I have checked the files permission. It is fine. It passes on FreeBSD6 but
fails on FreeBSD 7. It passes on a local file system but fails on NFS file
system.

Thanks
-Chandra



On Tue, Jan 20, 2009 at 2:02 PM, Doug Hardie  wrote:

>
> On Jan 19, 2009, at 23:54, chandra reddy wrote:
>
> Hi,
>>
>> I am getting the following error when i run tar on a directory.
>>
>> [chan...@home]$ tar  zcf config-xsl.tar  config-xsl/9.6
>>
>> tar: Cannot open directory
>>
>> config-xsl/9.6/configuration/protocols/mpls/label-switched-path/oam/bfd-liveness-detection/detection-time:
>> No such file or directory
>> tar: Cannot open directory
>>
>> config-xsl/9.6/configuration/protocols/mpls/label-switched-path/oam/bfd-liveness-detection/failure-action:
>> No such file or directory
>> [chan...@home]$ ldd  tar
>> tar:
>>   libc.so.6 => /usr/local/lib/compat/libc.so.6 (0x28097000)
>> chan...@home]$ uname -a
>> FreeBSD chandra 7.1-RC1 FreeBSD 7.1-RC1 #0: Sun Dec  7 05:57:33 UTC 2008
>> r...@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.
>>
>> Can any one help me what is the real problem here and how to fix it?
>>
>
> Check and be sure that those directories have r and x for the user running
> tar.  It looks like a permission problem.
>



-- 
"debugging a buggy debugger with a cross buggy debugger leads to a  buggy
life "
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"