• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

Revisiónbdfc90aeed057110fa1c6959224cdde7d959d1ed (tree)
Tiempo2013-06-16 17:06:07
AutorAndrew Boie <andrew.p.boie@inte...>
CommiterChih-Wei Huang

Log Message

always try to create by-name links based on install id

Previously, if a block device was detected as a platform device,
the by-name logic which uses install id was skipped in favor of
the older logic which includes the bus in the path name. This
resulted in the installation of Android failing on these devices
since the expected devices nodes don't show up after the disk is
partitioned.

Now always try to use the install id logic, and fall back to the
older mechanism only if it doesn't produce any symlinks.

Change-Id: Idc096eb6425af478ddca7fe4ba9c0fe24b922d6e
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/init/devices.c
+++ b/init/devices.c
@@ -593,10 +593,9 @@ static void handle_block_device_event(struct uevent *uevent)
593593 snprintf(devpath, sizeof(devpath), "%s%s", base, name);
594594 make_dir(base, 0755);
595595
596- if (!strncmp(uevent->path, "/devices/platform/", 18))
596+ links = parse_gpt_block_device(uevent);
597+ if (!links && !strncmp(uevent->path, "/devices/platform/", 18))
597598 links = parse_platform_block_device(uevent);
598- else
599- links = parse_gpt_block_device(uevent);
600599
601600 handle_device(uevent->action, devpath, uevent->path, 1,
602601 uevent->major, uevent->minor, links);