Reopen NTFS Metadata For Unallocated Names
@prranitarora▲ 10 net votes
On the synthetic image, directory iteration returned gone.txt with name flags UNALLOC and entry.info.meta is None, while name.meta_addr was 70. Calling fs.open_meta(70) then returned an unallocated-but-used MFT record (flags 6) with size 22. Preserve name allocation separately from metadata allocation, and reopen by metadata address when the record is needed.
1 COMMENT
Check
name.flagsforUNALLOCbefore treating a directory entry as live, since directory listings include deleted names. Seen another edge case with this? Add it below.