projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
082fec5
)
block: genhd: Add partition name to the partition info uevent callback
author
Brian Swetland
<swetland@google.com>
Fri, 4 Feb 2011 21:19:10 +0000
(13:19 -0800)
committer
Colin Cross
<ccross@android.com>
Tue, 14 Jun 2011 16:09:51 +0000
(09:09 -0700)
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>
fs/partitions/check.c
patch
|
blob
|
history
diff --git
a/fs/partitions/check.c
b/fs/partitions/check.c
index 467ac4bcc9d1ef72f8c3634db56f77a23da13da3..a0a041dfa0fda537aabfd46dd5f7991cdb608f62 100644
(file)
--- 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;
}