MathewWi / open-wiiflow-mod

Automatically exported from code.google.com/p/open-wiiflow-mod
0 stars 0 forks source link

Reload cache causes directory corruption #200

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. If you manually add games and reload the cache the cache file is created 
with 0 bytes and in all upper case letters.
2. When you exit and restart WiiFlow the cache file is messed up (0 bytes) and 
the system tries to recreate the cache again but fails.  Each time you run 
WiiFlow it takes a long time as it is trying to create the cache lists file 
over and over and failing.
3. If you manually delete the cache/lists file and do a directory scan and fix 
any problems found and then do a reload cache it will create the cache/lists 
file without any directory corruption.
4. But if the cache file exists something goes wrong on the delete and there is 
directory corruption.

I have a feeling this hasn't been a big issue for most people since they don't 
have a huge number of games and when WiiFlow starts it doesn't look like a big 
issue as they aren't seeing the attempt to rebuild the cache each time.

What is the expected output? What happened instead?
The cache file should be created without any directory corruption.  This only 
happens if there is not an existing file.  If there is one the system corrupts 
the directory structure.

What version of the product are you using? Which d2x cIOS version?
r1054 of WiiFlow, d2x v10

Running on a single FAT32 partition with 32K clusters.  Tested this on my 
500GB, 2TB and 4TB systems and it does the exact same thing on each.

Please provide any additional information below.

Here is the chkdisk results...It found and fixed directory corruption in the 
wiiflow\cache\lists folder.  I've attached the 2 files from the FOUND.000 
directory.

[Window Title]
Checking Disk WII_4TB (G:)

[Main Instruction]
Some problems were found and fixed

[Content]
Any files that were affected by these problems were moved to a folder named 
"Found" on the device or disk. Your device or disk is now ready to use.

If you removed the device or disk before all files were fully written to it, 
parts of some files might still be missing. If so, go back to the source and 
recopy those files to your device or disk.

[^] Hide details  [Close]

[Expanded Information]
Volume WII_4TB created 12/27/2013 9:40 PM
Volume Serial Number is 1D05-2B56
Windows is verifying files and folders...
Removing nonvalid long folder entry from \wiiflow\cache\lists...
Removing nonvalid long folder entry from \wiiflow\cache\lists...
File and folder verification is complete.
1600 KB in 2 recovered files.
Windows has made corrections to the file system.
3,906,048,608 KB total disk space.
          192 KB in 5 hidden files.
       61,184 KB in 1,807 folders.
3,673,192,704 KB in 67,239 files.
  232,794,496 KB are available.

       32,768 bytes in each allocation unit.
  122,064,019 total allocation units on disk.
    7,274,828 allocation units available on disk.

Original issue reported on code.google.com by bdonovan...@gmail.com on 30 Dec 2013 at 4:33

Attachments: