diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2012-11-05 11:33:06 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-12 17:15:41 -0500 |
commit | e93c89c1aaaaaec3487c4c18dd02360371790722 (patch) | |
tree | 359c310c736d0db5cfd724c628fdb9f2f680a3d3 /fs/btrfs/volumes.h | |
parent | ff023aac31198e88507d626825379b28ea481d4d (diff) |
Btrfs: add new sources for device replace code
This adds a new file to the sources together with the header file
and the changes to ioctl.h and ctree.h that are required by the
new C source file. Additionally, 4 new functions are added to
volume.c that deal with device creation and destruction.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 8fd5a4d8acc8..58d79375deaf 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h | |||
@@ -286,6 +286,8 @@ struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid, | |||
286 | u8 *uuid, u8 *fsid); | 286 | u8 *uuid, u8 *fsid); |
287 | int btrfs_shrink_device(struct btrfs_device *device, u64 new_size); | 287 | int btrfs_shrink_device(struct btrfs_device *device, u64 new_size); |
288 | int btrfs_init_new_device(struct btrfs_root *root, char *path); | 288 | int btrfs_init_new_device(struct btrfs_root *root, char *path); |
289 | int btrfs_init_dev_replace_tgtdev(struct btrfs_root *root, char *device_path, | ||
290 | struct btrfs_device **device_out); | ||
289 | int btrfs_balance(struct btrfs_balance_control *bctl, | 291 | int btrfs_balance(struct btrfs_balance_control *bctl, |
290 | struct btrfs_ioctl_balance_args *bargs); | 292 | struct btrfs_ioctl_balance_args *bargs); |
291 | int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info); | 293 | int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info); |
@@ -302,6 +304,12 @@ int btrfs_get_dev_stats(struct btrfs_root *root, | |||
302 | int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info); | 304 | int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info); |
303 | int btrfs_run_dev_stats(struct btrfs_trans_handle *trans, | 305 | int btrfs_run_dev_stats(struct btrfs_trans_handle *trans, |
304 | struct btrfs_fs_info *fs_info); | 306 | struct btrfs_fs_info *fs_info); |
307 | void btrfs_rm_dev_replace_srcdev(struct btrfs_fs_info *fs_info, | ||
308 | struct btrfs_device *srcdev); | ||
309 | void btrfs_destroy_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, | ||
310 | struct btrfs_device *tgtdev); | ||
311 | void btrfs_init_dev_replace_tgtdev_for_resume(struct btrfs_fs_info *fs_info, | ||
312 | struct btrfs_device *tgtdev); | ||
305 | int btrfs_scratch_superblock(struct btrfs_device *device); | 313 | int btrfs_scratch_superblock(struct btrfs_device *device); |
306 | 314 | ||
307 | static inline void btrfs_dev_stat_inc(struct btrfs_device *dev, | 315 | static inline void btrfs_dev_stat_inc(struct btrfs_device *dev, |