Ignore all virtual block devices except loop devices.
This CL modifies DiskManager to ignore all virtual block devices, except
loop devices, when enumerating devices and processing udev events.
BUG=chromium:265683
TEST=Tested the following:
1. Build and run unit tests.
2. Run the following tests:
- platform_CrosDisksDBus
- platform_CrosDisksFilesystem
3. Verify that no virtual block devices, except loop devices, are
reported when running the following command on lumpy:
dbus-send --system --print-reply --dest=org.chromium.CrosDisks \
/org/chromium/CrosDisks org.chromium.CrosDisks.EnumerateDevices
Change-Id: I8315af19de914c75db350dfca5dc27faf713af73
Reviewed-on: https://gerrit.chromium.org/gerrit/63666
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
Commit-Queue: Ben Chan <benchan@chromium.org>
4 files changed