dosfsck unable to truncate files

Bug #17960 reported by Fred
4
Affects Status Importance Assigned to Milestone
dosfstools (Ubuntu)
Fix Released
Medium
Daniel Silverstone

Bug Description

I found dosfsck (dosfsck 2.11, 12 Mar 2005) unable to truncate file when two files
share the same cluster and you want to truncate the 1st file. (the program exits
with :
"Internal error: didn't find cluster xxxx in chain starting at 0")

i had a look at the code, and i found that this message (in check.c:510) will
nearly always happen
because of the condition.
i add the following line:
--- 501,505 ----
                            this = next_cluster(fs,this);
                        }
+ this=curr;
                        break;
                    }

then it seems to work (i repaired my partition with the patched version)

best wishes

Revision history for this message
Fred (sedak) wrote :

bug was corrected in the cvs version, waiting for next stable version ...

Matt Zimmerman (mdz)
Changed in dosfstools:
assignee: nobody → dsilvers
Revision history for this message
Daniel Silverstone (dsilvers) wrote :

dosfstools (2.11-2.1ubuntu1) dapper; urgency=low

  * Applied patch from Fred (launchpad bug 17960) to correct issue where
    dosfsck cannot truncate a file if another file shares its clusters.

 -- Daniel Silverstone <email address hidden> Mon, 3 Apr 2006 19:05:57 +0100

Changed in dosfstools:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.