zanesterling / fatr

A FAT12 parsing and manipulation tool
MIT License
1 stars 0 forks source link

image: Add offset argument #10

Closed kallisti5 closed 7 years ago

kallisti5 commented 7 years ago
kallisti5 commented 7 years ago

This allows us to skip into a fat filesystem in a disk image. Useful when partition tables exist. The logic to find the end of the fat filesystem at the moment is based on the file size. This assumption no longer works on partitioned disks... from the FAT BIOS_Param I don't see a reliable length. Maybe two functions instead? from_file and from_file_range with a start and end ?

kallisti5 commented 7 years ago

ok. Reworked to have two file_from functions. file_from_offset accepts a length and an offset to load the FAT filesystem from.

kallisti5 commented 7 years ago

nah. Good nits. I shouldn't of made them single letter in the first place. Went with image_fn to match save function.