diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-12-12 10:03:26 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-12-12 10:03:26 -0500 |
commit | e4404d6e8da678d852b7f767f665f8edf76c9e9f (patch) | |
tree | af6b52e5251d8e939f91e1feab760c1f06021410 /fs/btrfs/volumes.h | |
parent | d2fb3437e4d8d12c73c587615ad187d5288547ec (diff) |
Btrfs: shared seed device
This patch makes seed device possible to be shared by
multiple mounted file systems. The sharing is achieved
by cloning seed device's btrfs_fs_devices structure.
Thanks you,
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index bdebe83c3195..86c44e9ae110 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h | |||
@@ -93,7 +93,6 @@ struct btrfs_fs_devices { | |||
93 | 93 | ||
94 | struct btrfs_fs_devices *seed; | 94 | struct btrfs_fs_devices *seed; |
95 | int seeding; | 95 | int seeding; |
96 | int sprouted; | ||
97 | 96 | ||
98 | int opened; | 97 | int opened; |
99 | }; | 98 | }; |
@@ -127,7 +126,7 @@ int btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, | |||
127 | int btrfs_rmap_block(struct btrfs_mapping_tree *map_tree, | 126 | int btrfs_rmap_block(struct btrfs_mapping_tree *map_tree, |
128 | u64 chunk_start, u64 physical, u64 devid, | 127 | u64 chunk_start, u64 physical, u64 devid, |
129 | u64 **logical, int *naddrs, int *stripe_len); | 128 | u64 **logical, int *naddrs, int *stripe_len); |
130 | int btrfs_read_sys_array(struct btrfs_root *root, u64 sb_bytenr); | 129 | int btrfs_read_sys_array(struct btrfs_root *root); |
131 | int btrfs_read_chunk_tree(struct btrfs_root *root); | 130 | int btrfs_read_chunk_tree(struct btrfs_root *root); |
132 | int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, | 131 | int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, |
133 | struct btrfs_root *extent_root, u64 type); | 132 | struct btrfs_root *extent_root, u64 type); |