diff options
author | Colin Cross <ccross@android.com> | 2010-04-15 14:04:27 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-10-06 16:32:27 -0700 |
commit | 658ff5f0caefdaada1c578b24d9036c52098f8f0 (patch) | |
tree | a457b1b51e03c22f71eedb7094691fd4b5c87744 /fs/partitions/check.c | |
parent | bf979ad4f3bcde0d854cec7833f4060a4948cc21 (diff) |
fs: partitions: add partition name to uevent
Change-Id: Ibde080cb84b313867ae593e3d46f12223f28babe
Diffstat (limited to 'fs/partitions/check.c')
-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 46170c82406a..6ffb1ac7de0c 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -374,6 +374,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->partition_name) + add_uevent_var(env, "PARTNAME=%s", part->partition_name); return 0; } |