(no title)
mattzito | 1 month ago
1) Rewrite the file to disk 2) Append the new data/metadata to the end of the existing file
I suppose you could pre-pad documents with empty blocks and then go modify those in situ by binary editing the file, but that sounds like a nightmare.
cubefox|1 month ago
PhilipRoman|1 month ago
layer8|1 month ago
Apart from that, file systems manage storage in larger fixed-size blocks (commonly 4 KB). One block typically links to the next block (if any) of the same file, but that’s about the extent of it.
formerly_proven|1 month ago
This is why “table of contents at the end” is such an exceedingly common design choice.