diff options
author | Brian Swetland <swetland@google.com> | 2011-02-04 13:19:10 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:09:51 -0700 |
commit | ec3e26868a693dd732e6badfe935d03688ec7314 (patch) | |
tree | 380b8c27df5a10c102247a91a1dfee2d1c2878aa /fs/partitions | |
parent | 082fec5ea3d328ceb86a9590c5e47efedc5ea45c (diff) |
block: genhd: Add partition name to the partition info uevent callback
For disk and partition devices, add new uevent parameter:
PARTNAME specifices the partition name of a partition device
Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'fs/partitions')
-rw-r--r-- | fs/partitions/check.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 467ac4bcc9d..a0a041dfa0f 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -371,6 +371,8 @@ static int part_uevent(struct device *dev, struct kobj_uevent_env *env) struct hd_struct *part = dev_to_part(dev); add_uevent_var(env, "PARTN=%u", part->partno); + if (part->info && part->info->volname[0]) + add_uevent_var(env, "PARTNAME=%s", part->info->volname); return 0; } |