Skip to content

Commit 1b9867e

Browse files
asjkdave
authored andcommitted
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: 668e48a ("btrfs: sysfs, add devid/dev_state kobject and device attributes") Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent a013d14 commit 1b9867e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ int btrfs_sysfs_add_device_link(struct btrfs_fs_devices *fs_devices,
12951295

12961296
init_completion(&dev->kobj_unregister);
12971297
error = kobject_init_and_add(&dev->devid_kobj, &devid_ktype,
1298-
fs_devices->devices_kobj, "%llu",
1298+
fs_devices->devinfo_kobj, "%llu",
12991299
dev->devid);
13001300
if (error) {
13011301
kobject_put(&dev->devid_kobj);

0 commit comments

Comments
 (0)