fidefrag should copy files instead of moving them
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fiDefrag |
In Progress
|
Medium
|
Unassigned |
Bug Description
When fidefrag attempts to defragment a file, it chooses to move the file to the '.fidefrag' folder instead of copying it to the folder.
If fidefrag were to copy the file to the .fidefrag folder, and then copy the file back to it's original folder (with .fidefrag appended to the filename), then fidefrag could choose which file to selected as the 'defragmented' file.
For example:
/home/tester/
fidefrag _copies_ somefile.txt to /.fidefrag/
fidefrag then _copies_ /.fidefrag/
fidefrag sees the original somefile.txt as 200mb in 50 pieces, and the new somefile.
fidefrag chooses to keep somefile.
Remove /home/tester/
Rename /home/tester/
Remove /.fidefrag/
Hope that makes sense?
This will help to eliminate the situations where, even after 5 passes, a file is more fragmented than it was to start out with.
This is how fidefrag functioned originally, but after testing, I determined tahat the file was more likley to become defragmented. I might have been wrong. I'm going to run some more tests now that you bring it up. But this is certainly not a bug. Thanks for reporting it though!