On Fri, 28 Nov 2008, Joerg Schilling wrote:

Håkan Olsson <[EMAIL PROTECTED]> wrote:

I was just restoring a bunch of files from backup using find|cpio when I
noticed that cpio does not copy files >2GB properly. The resulting files
were "oddly" sized (<actual size> % 2GB, perhaps?).

Even more alarming, cpio did not warn in any way about not copying the
file correctly! The cpio command exited normally ($? was 0). Output from
"-pmdu" did not indicate any errors!

What exactly did you do when encountering the problem?

cd /backup
find . -depth -print | cpio -pdmvu /pool
<...lots of files listed>
<huge number> blocks copied

I've filed a bug report on it now.

The limit is 4GB, not 2 as I believed last night. It's simple to reproduce:

mkdir test
mkfile 4200m bigfile
echo bigfile | cpio -pdmvu test/
echo $?
ls -l bigfile test/bigfile

/H
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to