aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2012-11-05 11:33:06 -0500
committerJosef Bacik <jbacik@fusionio.com>2012-12-12 17:15:41 -0500
commite93c89c1aaaaaec3487c4c18dd02360371790722 (patch)
tree359c310c736d0db5cfd724c628fdb9f2f680a3d3 /fs/btrfs/volumes.h
parentff023aac31198e88507d626825379b28ea481d4d (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.h8
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);
287int btrfs_shrink_device(struct btrfs_device *device, u64 new_size); 287int btrfs_shrink_device(struct btrfs_device *device, u64 new_size);
288int btrfs_init_new_device(struct btrfs_root *root, char *path); 288int btrfs_init_new_device(struct btrfs_root *root, char *path);
289int btrfs_init_dev_replace_tgtdev(struct btrfs_root *root, char *device_path,
290 struct btrfs_device **device_out);
289int btrfs_balance(struct btrfs_balance_control *bctl, 291int btrfs_balance(struct btrfs_balance_control *bctl,
290 struct btrfs_ioctl_balance_args *bargs); 292 struct btrfs_ioctl_balance_args *bargs);
291int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info); 293int btrfs_resume_balance_async(struct btrfs_fs_info *fs_info);
@@ -302,6 +304,12 @@ int btrfs_get_dev_stats(struct btrfs_root *root,
302int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info); 304int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info);
303int btrfs_run_dev_stats(struct btrfs_trans_handle *trans, 305int btrfs_run_dev_stats(struct btrfs_trans_handle *trans,
304 struct btrfs_fs_info *fs_info); 306 struct btrfs_fs_info *fs_info);
307void btrfs_rm_dev_replace_srcdev(struct btrfs_fs_info *fs_info,
308 struct btrfs_device *srcdev);
309void btrfs_destroy_dev_replace_tgtdev(struct btrfs_fs_info *fs_info,
310 struct btrfs_device *tgtdev);
311void btrfs_init_dev_replace_tgtdev_for_resume(struct btrfs_fs_info *fs_info,
312 struct btrfs_device *tgtdev);
305int btrfs_scratch_superblock(struct btrfs_device *device); 313int btrfs_scratch_superblock(struct btrfs_device *device);
306 314
307static inline void btrfs_dev_stat_inc(struct btrfs_device *dev, 315static inline void btrfs_dev_stat_inc(struct btrfs_device *dev,