]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
Btrfs: Add mount option to turn off data cow
authorChris Mason <chris.mason@oracle.com>
Tue, 18 Dec 2007 01:14:01 +0000 (20:14 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:58 +0000 (11:03 -0400)
commitbe20aa9dbadc8c06283784ee12bbc0d97dea3418
tree52bd8b7e21b36d10dbb48f8b163eea992c9cfd4a
parentb6cda9bcb4df7544c67fc3548a53bc1607d59f46
Btrfs: Add mount option to turn off data cow

A number of workloads do not require copy on write data or checksumming.
mount -o nodatasum to disable checksums and -o nodatacow to disable
both copy on write and checksumming.

In nodatacow mode, copy on write is still performed when a given extent
is under snapshot.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/super.c