login
Header Space

 
 

Re: ext3 block layout after deleting previous drive contents

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bock, Tony <tony.bock@...>
Cc: <linux-fsdevel@...>
Date: Tuesday, April 8, 2008 - 1:08 pm

On Tue, Apr 08, 2008 at 09:33:32AM -0700, Bock, Tony wrote:

As a general rule you cannot re-use the blocks (in ordered mode anyway) that are
involved in a truncate until the transaction for the truncate is completed in
order to make sure that everything is consistent after a recovery in the case of
a crash.  So if you are rm -rf *'ing and then immediately re-writing stuff you
are going to end up with weirdness, as there will be blocks that cannot be
reused until the entire truncate is completed.  Best bet is to do  you rm -rf *
and then run sync, and then do your writing, that should garuntee that the
blocks that you have freed up from the truncate are actually able to be used by
new stuff.  Thanks much,

Josef 
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: ext3 block layout after deleting previous drive contents, Josef Bacik, (Tue Apr 8, 1:08 pm)
speck-geostationary