From: Stef B. <st...@bo...> - 2008-03-06 10:19:51
|
Michal Ludvig wrote: > 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. > > Thanks for the fast reply. Ok I've found these functions. Are they called by Fuse, cause I did not find where this truncate will be done. Stef Bon > Michal > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Mysqlfs-general mailing list > Mys...@li... > https://lists.sourceforge.net/lists/listinfo/mysqlfs-general > > |