lclevy / ADFlib

A free, portable and open implementation of the Amiga filesystem
GNU General Public License v2.0
90 stars 30 forks source link

When deleting a file, the fileheaderblock isn't set free in bitmap block #6

Closed Niteto closed 5 years ago

Niteto commented 7 years ago

https://github.com/lclevy/ADFlib/blob/69af1e5f910925b985d5e804d1ed446886ed1468/src/adf_dir.c#L227 Only the datablocks of the file are marked free in the bitmap, the fileheaderblock isn't set free so after every deleted file one block capacity is lost. Adding "adfSetBlockFree(vol, nSect);" after line 227 in adf_dir.c will fix this issue.

lclevy commented 7 years ago

ok for this fix. could you please provide me a patch to apply ?

Niteto commented 7 years ago

I hope this is the right way to apply a patch, i'm new to GitHub :)