This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7359 - Filesystem errors after moving directorys with rockbox
Attached to Project:
Rockbox
Opened by PaulJam (PaulJam) - Tuesday, 26 June 2007, 18:38 GMT+2
Last edited by Peter D'Hoye (petur) - Thursday, 05 July 2007, 20:31 GMT+2
Opened by PaulJam (PaulJam) - Tuesday, 26 June 2007, 18:38 GMT+2
Last edited by Peter D'Hoye (petur) - Thursday, 05 July 2007, 20:31 GMT+2
|
DetailsWhen you move a directory in the filetree by using the "cut" and "paste" options in the context menu, this causes filesystem errors.
This was reproduceable with a fresh formatted (quickformat) harddrive with only the .rockbox folder and some testfiles copied to it. I started Rockbox and moved the folder "Müll" from "/Daten" to "/Aufnahmen", then shutdown Rockbox, connected to USB and ran chkdsk. Here is the output of chkdsk (unfortunately only in german): Der Typ des Dateisystems ist FAT32. Volume H300 erstellt 26.06.2007 17:50 Volumenummer: 4CBB-1706 Dateien und Ordner werden überprüft... Windows hat auf dem Datenträger Fehler gefunden, wird diese aber nicht repariere n, weil der Parameter /F nicht angegeben wurde. \Aufnahmen\Müll Fehler in . und/oder .. berichtigt. Die Datei- und Ordnerüberprüfung ist abgeschlossen. Windows hat Probleme im Dateisystem festgestellt. Führen Sie CHKDSK mit der Option /F (Fehlerbehebung) aus, um die Probleme zu beheben. 19.517.424 KB Speicherplatz auf dem Datenträger insgesamt 784 KB in 49 Ordnern 53.824 KB in 850 Dateien 19.462.800 KB sind verfügbar 16.384 Bytes in jeder Zuordnungseinheit 1.219.839 Zuordnungseinheiten auf dem Datenträger insgesamt 1.216.425 Zuordnungseinheiten auf dem Datenträger verfügbar I think the line with the error translates to something like: \Aufnahmen\Müll Errors in . and/or .. corrected H320 with version: r13721M-070626 (default settings) |
This task depends upon
Closed by Peter D'Hoye (petur)
Thursday, 05 July 2007, 20:31 GMT+2
Reason for closing: Fixed
Additional comments about closing: thanks for spotting!
Thursday, 05 July 2007, 20:31 GMT+2
Reason for closing: Fixed
Additional comments about closing: thanks for spotting!
And now for a fix....
(please ignore the c++ style comments, it was late ;)
- enumerate all entries in the dir in search of ..
- make sure the first cluster is correct in case the parent is the root
(please don't mind the C++ style comments, they'll go away too ;)