Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy - strange behaviour at files bigger than 4 GB #108

Open
fritzmueller opened this issue Aug 28, 2024 · 1 comment
Open

copy - strange behaviour at files bigger than 4 GB #108

fritzmueller opened this issue Aug 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fritzmueller
Copy link

I tested the copy command and found a strange effect:
In Win and in Linux files cannot be copied on FAT32 when they are bigger than 4 GB. There is an error message that prevents this.
So far ok.
In FreeDOS I tested the copy command with 3 files, 1,6 GB each, the files contain only "AAAA...." or "BBBB..." or "CCCC...".
I ran:
copy filea.txt + fileb.txt + filec.txt filenew.txt (alltogether 3 x 1,6 = 4,8GB).
It runs through, there is NO error message, but the result is as follows:
filenew.txt contains the following text:
0,8 GB "C" at the beginning followed by 0,8 GB "A" then 1,6 GB "B" and 0,8 GB "C".
This means: it simply starts with the text that cannot be written at the beginning.
Not a big problem, but an unusual behaviour.

@PerditionC
Copy link
Contributor

looks like the write wraps around or otherwise overflows overwriting beginning of file. It should error with insufficient space and prevent the copy.

@PerditionC PerditionC added the bug Something isn't working label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants