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:
bf979ad
)
fs: partitions: add partition name to uevent
author
Colin Cross
<ccross@android.com>
Thu, 15 Apr 2010 21:04:27 +0000
(14:04 -0700)
committer
Colin Cross
<ccross@android.com>
Wed, 6 Oct 2010 23:32:27 +0000
(16:32 -0700)
Change-Id: Ibde080cb84b313867ae593e3d46f12223f28babe
fs/partitions/check.c
patch
|
blob
|
history
diff --git
a/fs/partitions/check.c
b/fs/partitions/check.c
index 46170c82406adbaf0578442015e494334731eb00..6ffb1ac7de0cb94a1c39904b5f5d8f355d0a699d 100644
(file)
--- 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;
}