Opened 17 years ago
Closed 17 years ago
#1716 closed bug (fixed)
Copying and removing some files (about 2 Mo) in the same destination directory two times corrupt the file system
Reported by: | oco | Owned by: | axeld |
---|---|---|---|
Priority: | critical | Milestone: | R1/alpha1 |
Component: | File Systems/BFS | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
This is a simplified scenario to reproduce the problem that prevent me from building the full freepascal source tree under Haiku.
I am able to reproduce the problem with a simple shell script and some files (see attached files).
Steps to reproduce :
- unzip the attached files in a directory
- go into this directory under Haiku
- launch ./test.sh in a terminal
Under Haiku, the second call to rm can't remove the last file in the dest directory and print a "general system error" message.
Here is a copy of the script :
mkdir dest cp source/*.* dest rm dest/*.* cp source/*.* dest rm dest/*.*
Change History (4)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Priority: | normal → critical |
---|---|
Status: | new → assigned |
Thanks a lot for this test case! I can reproduce the bug with this method easily :-)
comment:3 by , 17 years ago
Milestone: | R1 → R1/alpha |
---|
comment:4 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in hrev23656. It was a debug check at the wrong place, or an almost useless feature at another wrong place :-) Thanks!
Oh ! my zip file is too big for Trac (666 KB instead of 500 KB). The zip file is here : http://olivier.coursiere.free.fr/download/bug_haiku_1716.zip