summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorBrian Swetland <swetland@google.com>2011-02-04 13:19:10 -0800
committerBrian Swetland <swetland@google.com>2011-03-29 13:58:03 -0700
commit4f263cf5a43e3304fb9122c4115a441cfbfa078d (patch)
tree555913c1384e0afc0694440dec37f4c667e49e95 /fs
parent6a36d50980ac57f2f220ae4befc7f203ce150753 (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')
-rw-r--r--fs/partitions/check.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 78b7cf5d9d88..69dd0e750992 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -370,6 +370,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;
}