aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Swetland <swetland@google.com>2011-02-04 13:19:10 -0800
committerErik Gilling <konkers@android.com>2011-03-30 11:24:50 -0700
commitac1578de21f356ffd4f5f788d6c1f3f855956709 (patch)
tree406deac613de8dac52ceecb4d3836ce86b86aa1b
parent661bea37667c38eaefe2676eb590580ee2b3872b (diff)
downloadexperimental-ac1578de21f356ffd4f5f788d6c1f3f855956709.tar.gz
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>
-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 77f0d024e36..a4abb597734 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;
}