-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Milkowski wrote:
> CG> Yes, it is Sun's cp.  I'm trying, with some difficulty, to figure out 
> CG> exactly how to reproduce this error in a way not specific to my data.  I
> CG> copied a set of randomly generated files with a deep directory structure
> CG> and cp seems to correctly call getdents() multiple times.
> 
> If you could re-create empty files - exactly the same directory
> atructure and file names, check if you still got a problem.
> If you do, then if you could send a script here (mkdir's -p and touch)
> so we can investigate.


I was able to reproduce this error with new directories and files
created by a shell script.  Here are scripts, which should be run in the
order given:

http://www.cgorski.org/bashmkdir.bash
http://www.cgorski.org/bashtouchfiles.bash
http://www.cgorski.org/bashcopyfiles.bash

These create some directories, including /tmp/pond/testdir and
/tmp/pond/testdirdest, and dump truss output in /tmp/copyfiles.truss.

After the scripts are run, compare:
# ls
/tmp/pond/testdirdest/pond/photos/unsorted/drive-452a/\[E\]/drive/archives/seconddisk_20nov2002/eujpg

and

# ls
/tmp/pond/testdir/pond/photos/unsorted/drive-452a/\[E\]/drive/archives/seconddisk_20nov2002/eujpg

103-0398_IMG.JPG and other files should be missing.

I filed a bug report, but I can't find the link to it.

This seems to work on zfs or ufs.

- --
Christopher Gorski
mailto:[EMAIL PROTECTED]
http://cgorski.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeizRgACgkQzUExD/R9ryrOnwCeP9B7A5dpMjg0me7lck8M1h2q
RrYAn1vN8RJRLEBFHI83W0YnjCh/LRGo
=pyv/
-----END PGP SIGNATURE-----
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to