User: Password:
|
|
Subscribe / Log in / New account

Supporting transactions in btrfs

Supporting transactions in btrfs

Posted Nov 12, 2009 16:30 UTC (Thu) by dtlin (✭ supporter ✭, #36537)
In reply to: Supporting transactions in btrfs by etienne_lorrain@yahoo.fr
Parent article: Supporting transactions in btrfs

Say you have a text editor which only wants to fsync one file and a
background task which is continuously writing lots of files.

How do you propose to implement fsync such that when your text editor's
requests it, only that one file and not too much else is flushed?


(Log in to post comments)

Supporting transactions in btrfs

Posted Nov 12, 2009 23:27 UTC (Thu) by masoncl (subscriber, #47138) [Link]

Btrfs actually already does this. When you fsync a file the metadata is written to a dedicated logging tree, and that file's data blocks go to disk along with the metadata for the dedicated tree.

The end result is that we only write data and metadata for the one file we're sending to fsync.


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