fmptools icon indicating copy to clipboard operation
fmptools copied to clipboard

howto including deleted records

Open jenswes opened this issue 10 months ago • 1 comments

Hello, thanks a lot for your work

while reading this, i'm wondering if this could be used to including deleted records i have a fp5 file and hoping it will include accidentialy deleted records.

In https://github.com/evanmiller/fmptools/blob/main/HACKING

fp5 sector layout:

    Offset  Length  Value
    0       1       Deleted? 1=Yes 0=No

in src/fmp.h it is declared as int deleted;

in src/block.c

src/block.c:    // block->deleted = sector[0];
src/block.c:    block->deleted = 0;

so my idea was forcing each block to be not deleted :-) but after compiling i'll get the same amount of data as without the patch

thanks for any hints

jenswes avatar Aug 19 '23 14:08 jenswes

Since a "block" might consist of many records, I'd guess that its deleted attribute won't be applicable to individually deleted records.

Do you know what any of the deleted data looks like? It might help to search the file e.g. with a hex editor to verify that the deleted records are actually in the file before trying to reverse engineer it.

evanmiller avatar Aug 19 '23 14:08 evanmiller