Home
last modified time | relevance | path

Searched hist:"883 b9bf29faede9fb578879f04e26cfca667e3df" (Results 1 – 3 of 3) sorted by relevance

/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DBTree.h883b9bf29faede9fb578879f04e26cfca667e3df Wed Aug 23 20:09:00 UTC 2017 hyche <cvghy116@gmail.com> BTRFS: Implement CopyOnWrite relevant functions, and BTree holds new attribute that record its root level.

CopyOnWrite works like this:
* Cache original node
* Allocating new block
* Cache new block to be writable
* Copy original node to new node, and changing.
Also if a node is already be COW-ed it cannot be COW-ed again, it will be changed in-place instead.

InternalCopy does CopyOnWrite all the nodes that we don't need to change anything on them.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
H A DBTree.cpp883b9bf29faede9fb578879f04e26cfca667e3df Wed Aug 23 20:09:00 UTC 2017 hyche <cvghy116@gmail.com> BTRFS: Implement CopyOnWrite relevant functions, and BTree holds new attribute that record its root level.

CopyOnWrite works like this:
* Cache original node
* Allocating new block
* Cache new block to be writable
* Copy original node to new node, and changing.
Also if a node is already be COW-ed it cannot be COW-ed again, it will be changed in-place instead.

InternalCopy does CopyOnWrite all the nodes that we don't need to change anything on them.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
H A Dbtrfs.h883b9bf29faede9fb578879f04e26cfca667e3df Wed Aug 23 20:09:00 UTC 2017 hyche <cvghy116@gmail.com> BTRFS: Implement CopyOnWrite relevant functions, and BTree holds new attribute that record its root level.

CopyOnWrite works like this:
* Cache original node
* Allocating new block
* Cache new block to be writable
* Copy original node to new node, and changing.
Also if a node is already be COW-ed it cannot be COW-ed again, it will be changed in-place instead.

InternalCopy does CopyOnWrite all the nodes that we don't need to change anything on them.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>