diff options
author | Anand Jain <anand.jain@oracle.com> | 2020-02-12 12:28:11 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-02-12 20:28:22 +0300 |
commit | 1b9867eb6120db85f8dca8ff42789d9ec9ee16a5 (patch) | |
tree | 91adefeea194aa9b64da6d042b03590ee0c9ca5b | |
parent | a013d141eceee0f7747385e900da2858141aa0f3 (diff) | |
download | linux-1b9867eb6120db85f8dca8ff42789d9ec9ee16a5.tar.xz |
btrfs: sysfs, move device id directories to UUID/devinfo
Originally it was planned to create device id directories under
UUID/devinfo, but it got under UUID/devices by mistake. We really want
it under definfo so the bare device node names are not mixed with device
ids and are easy to enumerate.
Fixes: 668e48af7a94 ("btrfs: sysfs, add devid/dev_state kobject and device attributes")
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index 6bac61c42c05..3c10e78924d0 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -1295,7 +1295,7 @@ int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices, init_completion(&dev->kobj_unregister); error = kobject_init_and_add(&dev->devid_kobj, &devid_ktype, - fs_devices->devices_kobj, "%llu", + fs_devices->devinfo_kobj, "%llu", dev->devid); if (error) { kobject_put(&dev->devid_kobj); |