LWN.net Logo

Supporting transactions in btrfs

Supporting transactions in btrfs

Posted Nov 12, 2009 20:53 UTC (Thu) by jimparis (subscriber, #38647)
Parent article: Supporting transactions in btrfs

Gross!

If the problem is that the application might die without BTRFS_IOC_TRANS_END, can't we just come up with an alternate mechanism that doesn't rely on doing things in pairs?

For example, open a special file called "/btrfs-transaction".
As long as it's open by your process, subsequent operations from that process are part of a transaction. Those operations can still fail and return errors. But even if your app dies rudely, the file descriptor will get closed, and the transaction ends.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds