Commit 1b9867eb authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

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: 668e48af

 ("btrfs: sysfs, add devid/dev_state kobject and device attributes")
Signed-off-by: default avatarAnand Jain <>
Reviewed-by: default avatarDavid Sterba <>
Signed-off-by: default avatarDavid Sterba <>
parent a013d141
......@@ -1295,7 +1295,7 @@ int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices,
error = kobject_init_and_add(&dev->devid_kobj, &devid_ktype,
fs_devices->devices_kobj, "%llu",
fs_devices->devinfo_kobj, "%llu",
if (error) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment