diff options
author | Anand Jain <anand.jain@oracle.com> | 2016-02-13 10:01:35 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-04-28 10:59:13 +0200 |
commit | 24e0474b59538cdb9d2b7318ec7c7ae9f6faf85d (patch) | |
tree | 6003a14ab7655ca8b965486dd500ec50c2194606 /fs/btrfs/volumes.h | |
parent | bd45ffbcb1f082e3c5a0bd56b1d7310d8b707ffb (diff) | |
download | op-kernel-dev-24e0474b59538cdb9d2b7318ec7c7ae9f6faf85d.zip op-kernel-dev-24e0474b59538cdb9d2b7318ec7c7ae9f6faf85d.tar.gz |
btrfs: create helper btrfs_find_device_by_user_input()
The patch renames btrfs_dev_replace_find_srcdev() to
btrfs_find_device_by_user_input() and moves it to volumes.c, so that
delete device can use it.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 1939ebd..5087393 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -448,6 +448,9 @@ void btrfs_close_extra_devices(struct btrfs_fs_devices *fs_devices, int step); int btrfs_find_device_missing_or_by_path(struct btrfs_root *root, char *device_path, struct btrfs_device **device); +int btrfs_find_device_by_user_input(struct btrfs_root *root, u64 srcdevid, + char *srcdev_name, + struct btrfs_device **device); struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info, const u64 *devid, const u8 *uuid); |