From: Michal L. <mi...@lo...> - 2008-03-05 20:35:17
|
Stef Bon wrote: > First the overwriting of a file by another smaller one. This makes > (if both files differ much in size and both are big enough) that > datablocks will be deleted. I've been searching the > sourcecode, but cannot find out how this works exactly. So before a file > is written, there should be a procedure which > checks the file already exits, and removes the datablocks which will not > be used. Is this right? If so, where can I find this > in the sourcecode? Hi, have a look at mysqlfs_truncate() in mysqlfs.c and query_truncate() in query.c. These two ensure that the non-used blocks are removed. Michal |