>That code appears to error out and return incomplete results if a) the >filename is too long or b) an integer overflows. Christopher's >filenames are only 96 chars; could Unicode be involved somehow? b) >seems unlikely in the extreme. It still seems like a bug, but I don't >see where it is. I am only an egg ;-)
And "ls" would fail in the same manner. There's one piece of code in "cp" (see usr/src/cmd/mv/mv.c) which short-circuits a readdir-loop: while ((dp = readdir(srcdirp)) != NULL) { int ret; if ((ret = traverse_attrfile(dp, source, target, 1)) == -1) continue; else if (ret > 0) { ++error; goto out; } This is strange to me because all other failures result in cp going over to the next file. Casper _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss