We want insert something into binary file, but want do I/O as less as possible. We don't want read the second part and write it back. Is there any way to do it. We know in theory, file are saved as blocks in file system. Could we just break the chain of blocks and insert a new one between it?
The same idea could also be used in join two files. Attach one after another. Is there any fast way to do this?
The problem comes from write a large file. We want write it to many small files and join them together.