aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2020-02-12 17:28:10 +0800
committerDavid Sterba <dsterba@suse.com>2020-02-12 18:28:18 +0100
commita013d141eceee0f7747385e900da2858141aa0f3 (patch)
treebcf4248d806fc9cd294e8f9729f0a0ad941a6386 /fs/btrfs/volumes.h
parentBtrfs: fix race between shrinking truncate and fiemap (diff)
downloadlinux-dev-a013d141eceee0f7747385e900da2858141aa0f3.tar.xz
linux-dev-a013d141eceee0f7747385e900da2858141aa0f3.zip
btrfs: sysfs, add UUID/devinfo kobject
Create directory /sys/fs/btrfs/UUID/devinfo to hold devices directories by the id (unlike /devices). Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r--fs/btrfs/volumes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index 690d4f5a0653..309cda477589 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -258,6 +258,7 @@ struct btrfs_fs_devices {
/* sysfs kobjects */
struct kobject fsid_kobj;
struct kobject *devices_kobj;
+ struct kobject *devinfo_kobj;
struct completion kobj_unregister;
};