diff options
author | Anand Jain <Anand.Jain@oracle.com> | 2014-06-03 11:36:01 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-28 13:48:43 -0700 |
commit | 0d39376aa28eba6d63d0120ccc399735842abc8e (patch) | |
tree | d588573634e0af59e6fc330d32ead6d53a18ac2c /fs/btrfs/sysfs.h | |
parent | 99994cde9c59c2b8bb67d46d531b26cc73e39747 (diff) | |
download | linux-next-0d39376aa28eba6d63d0120ccc399735842abc8e.tar.gz |
btrfs: dev add should add its sysfs entry
we would need the device links to be created,
when device is added.
Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/sysfs.h')
-rw-r--r-- | fs/btrfs/sysfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h index 529554e5f9de..ac46df37504c 100644 --- a/fs/btrfs/sysfs.h +++ b/fs/btrfs/sysfs.h @@ -66,6 +66,8 @@ char *btrfs_printable_features(enum btrfs_feature_set set, u64 flags); extern const char * const btrfs_feature_set_names[3]; extern struct kobj_type space_info_ktype; extern struct kobj_type btrfs_raid_ktype; +int btrfs_kobj_add_device(struct btrfs_fs_info *fs_info, + struct btrfs_device *one_device); int btrfs_kobj_rm_device(struct btrfs_fs_info *fs_info, struct btrfs_device *one_device); #endif /* _BTRFS_SYSFS_H_ */ |