bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


From: Pádraig Brady
Subject: Re: (no subject)
Date: Wed, 4 Feb 2009 11:54:31 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Jeromy Keloway wrote:
> Good afternoon
> 
> What I have to say is a little bit... hard to believe.
> But I think I found a "bug" in the Shell-Command "cp". The command goes into 
> a endless loop when I do the following:
> 
> 
> 1) Mount a partition with the filesystem "ext3" ("/media/EXT3drive")
> 
> 2) Mount a partition with the filesystem "fat32" ("/media/FAT32drive")
> 
> 3) Generate a file on the ext3-System with a filesize > 4GB
> 
> 4) Try to copy this file from /media/EXT3drive to /media/FAT32drive with the 
> following command: "cp -urv /media/EXT3drive/4GBfile.img 
> /media/FAT32drive/4GBfile.img"
> 
> 5) The file will be transfered until the filesize reached the 4GB limit. When 
> the file has the maximum size that is possible on FAT32, it stop growing and 
> cp is waiting forever to complet this file(wait about 48h -> nothing happens).
> 
> 
> What cp should do:
> 
> Check the filesystem on the target partition before the transfer begins and 
> inform the user about any problems OR interrupt the transfer of this file and 
> write a log/inform the user.
> 
> Thanks for your attention
> 
> Jeromy

Seems fine here:

$ truncate -s5GB /media/disk/5GBfile.img
truncate: truncating `/media/disk/5GBfile.img' at 5000000000 bytes: File too 
large
$ ls -l /media/disk/5GBfile.img
-rwxr-xr-x 1 padraig root 0 2009-02-04 11:01 /media/disk/5GBfile.img
$ rm /media/disk/5GBfile.img

$ truncate -s5GB 5GBfile.img
$ cp -urv 5GBfile.img /media/disk/
`5GBfile.img' -> `/media/disk/5GBfile.img'
cp: cannot lseek `/media/disk/5GBfile.img': Invalid argument
$ rm /media/disk/5GBfile.img

$ cp --sparse=never -urv 5GBfile.img /media/disk/
`5GBfile.img' -> `/media/disk/5GBfile.img'
./cp: writing `/media/disk/5GBfile.img': File too large
$ ls -l /media/disk/5GBfile.img
-rwxr-xr-x 1 padraig root 4,294,967,295 2009-02-04 11:14 /media/disk/5GBfile.img

What version of kernel and coreutils do you have?
I would guess that the FAT driver in your kernel may be having issues?

cheers,
Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]