diff options
author | Bowgo Tsai <bowgotsai@google.com> | 2018-05-17 16:19:52 +0800 |
---|---|---|
committer | Bowgo Tsai <bowgotsai@google.com> | 2018-05-19 09:28:42 +0800 |
commit | ff17cc31e5aa49fc8cce1693f813d150a7343ab5 (patch) | |
tree | 9b58f8df9687164dfed0ac11e339f257afb83bd7 /init/devices_test.cpp | |
parent | 7905b1e16286653679b7ff9b595f3ed7de5e182f (diff) | |
download | core-ff17cc31e5aa49fc8cce1693f813d150a7343ab5.tar.gz core-ff17cc31e5aa49fc8cce1693f813d150a7343ab5.tar.bz2 core-ff17cc31e5aa49fc8cce1693f813d150a7343ab5.zip |
Removing block device by-num symlinks
The uevent.partition_num easily collides between partitions, for
example:
Both /dev/block/sda3 and /dev/block/sdd3 will generate the same symlink:
/dev/block/platform/soc/1da4000.ufshc/by-num/p3
This change remove those by-num symlinks as there seems no effective
user of it.
Bug: 78613232
Test: m init_tests && \
adb push $OUT/data/nativetest64/init_tests/init_tests /data/. && \
adb shell /data/init_tests
Change-Id: I8dfa8dc1a2f9fc9296aa30f33e905bf158b501de
Merged-In: I8dfa8dc1a2f9fc9296aa30f33e905bf158b501de
(cherry picked from commit 95591bd00e653826f25bfa705c3f50545f6b06a3)
Diffstat (limited to 'init/devices_test.cpp')
-rw-r--r-- | init/devices_test.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/init/devices_test.cpp b/init/devices_test.cpp index eba00cb78..d658f4d9a 100644 --- a/init/devices_test.cpp +++ b/init/devices_test.cpp @@ -84,7 +84,6 @@ TEST(device_handler, get_block_device_symlinks_success_platform_with_partition) }; std::vector<std::string> expected_result{ "/dev/block/platform/soc.0/f9824900.sdhci/by-name/modem", - "/dev/block/platform/soc.0/f9824900.sdhci/by-num/p1", "/dev/block/platform/soc.0/f9824900.sdhci/mmcblk0p1", }; @@ -100,7 +99,6 @@ TEST(device_handler, get_block_device_symlinks_success_platform_with_partition_o .partition_num = 1, }; std::vector<std::string> expected_result{ - "/dev/block/platform/soc.0/f9824900.sdhci/by-num/p1", "/dev/block/platform/soc.0/f9824900.sdhci/mmcblk0p1", }; |