public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Ordering of directory operations maintained across system crashes in Btrfs?
@ 2014-02-26  2:01 thanumalayan mad
  2014-03-03 17:30 ` thanumalayan mad
  2014-03-03 17:43 ` Chris Mason
  0 siblings, 2 replies; 5+ messages in thread
From: thanumalayan mad @ 2014-02-26  2:01 UTC (permalink / raw)
  To: linux-btrfs

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 crash, I observe the
effects of rename() but not the effects of the unlink()?

I think I am observing Btrfs re-ordering an unlink() and a rename(),
and I just want to confirm that my observation is true. Also, if Btrfs
does send directory operations to disk out of order, is there some
limitation on this? Like, is this restricted to only unlink() and
rename()?

I am looking at some (buggy) applications that use Btrfs, and this
behavior seems to affect them.

Thanks,
Thanu

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-13 10:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-26  2:01 Ordering of directory operations maintained across system crashes in Btrfs? thanumalayan mad
2014-03-03 17:30 ` thanumalayan mad
2014-03-03 17:43 ` Chris Mason
2014-03-03 17:56   ` thanumalayan mad
2014-03-13 10:01     ` Goswin von Brederlow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox