Ordering of directory operations maintained across system crashes in Btrfs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux