Ordering of directory operations maintained across system crashes in Btrfs?

2014-02-25 Thread thanumalayan mad
Hi all, Slightly complicated question. Assume I do two directory operations in a Btrfs partition (such as an unlink() and a rename()), one after the other, and a crash happens after the rename(). Can Btrfs (the current version) send the second operation to the disk first, so that after the

Re: Ordering of directory operations maintained across system crashes in Btrfs?

2014-03-03 Thread thanumalayan mad
Any ideas about this? Guessed-up, not-entirely-sure answers would help too. An example application bug that would be affected by this is from LevelDB: https://code.google.com/p/leveldb/issues/detail?id=189 Thanks, Thanu On Tue, Feb 25, 2014 at 8:01 PM, thanumalayan mad madth...@gmail.com wrote

Re: Ordering of directory operations maintained across system crashes in Btrfs?

2014-03-03 Thread thanumalayan mad
, Thanu On Mon, Mar 3, 2014 at 11:43 AM, Chris Mason c...@fb.com wrote: On 02/25/2014 09:01 PM, thanumalayan mad wrote: Hi all, Slightly complicated question. Assume I do two directory operations in a Btrfs partition (such as an unlink() and a rename()), one after the other, and a crash happens