diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2012-11-21 15:18:10 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-17 02:46:28 +0100 |
commit | 31e502298d80e2af9001d17dc419a3fd4b0bebef (patch) | |
tree | 24606ea4998e962fff864eb24e8be6f56b095e14 /fs/btrfs/volumes.h | |
parent | Btrfs: fix BUG() in scrub when first superblock reading gives EIO (diff) | |
download | linux-31e502298d80e2af9001d17dc419a3fd4b0bebef.tar.xz linux-31e502298d80e2af9001d17dc419a3fd4b0bebef.zip |
Btrfs: put raid properties into global table
Raid properties can be shared among raid calculation code, we can put
them into a global table to keep it simple.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 37d0157167b0..d3c3939ac751 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -180,6 +180,15 @@ struct btrfs_device_info { u64 total_avail; }; +struct btrfs_raid_attr { + int sub_stripes; /* sub_stripes info for map */ + int dev_stripes; /* stripes per dev */ + int devs_max; /* max devs to use */ + int devs_min; /* min devs needed */ + int devs_increment; /* ndevs has to be a multiple of this */ + int ncopies; /* how many copies to data has */ +}; + struct map_lookup { u64 type; int io_align; |