Add mkfs options for data and metadata mirroring modes
commita57a255e442c8d8d3c1c28780af84483c3b5ec21
authorChris Mason <chris.mason@oracle.com>
Thu, 3 Apr 2008 20:35:48 +0000 (3 16:35 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Thu, 3 Apr 2008 20:35:48 +0000 (3 16:35 -0400)
treea39d09d9000ab640f81e6153eb41d6568c0be34a
parentc7be130df72665117991ec93e7dd7c556c83230f
Add mkfs options for data and metadata mirroring modes

mkfs.btrfs --data {raid0,raid1,single}
mkfs.btrfs --metadata {raid0,raid1,single}

In single mode, no extra duplication or striping is done.
In raid0 mode, blocks are spread across all of the available devices
In raid1 mode, blocks are mirrored across two devices.

For metadata, if raid1 is used and there is only one device, the
metadata is duplicated on that single spindle.

The defaults are raid0 for data and raid1 for metadata
mkfs.c