diff options
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 eca218082464..b4095cc73436 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; } |