Monitor udev events for the MMC subsystem.

cros-disks previously monitored udev events from the SCSI subsystem and
missed the events from the MMC subsystem, which is associated with some
SD card readers.

BUG=chromium:375368
TEST=Tested the following:
1. `FEATURES=test emerge-$BOARD platform2`
2. Run the following command under a root shell to monitor DeviceAdded
   and DeviceRemoved signal emitted by cros-disks on Link and Blaze:

     dbus-monitor --system --monitor 'interface=org.chromium.CrosDisks'

   A DeviceAdded signal should be emitted when a SD card is inserted.
   A DeviceRemoved signal should be emitted when a SD card is removed.

Change-Id: I50277e2805561ac618f9f7623b582c09a2bf2aff
Reviewed-on: https://chromium-review.googlesource.com/203174
Commit-Queue: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Toni Barzic <tbarzic@chromium.org>
2 files changed
tree: eb236b647c44cc1eefa82d6bac37084d04f6e11e
  1. .gitignore
  2. LICENSE
  3. OWNERS
  4. archive_manager.cc
  5. archive_manager.h
  6. archive_manager_unittest.cc
  7. avfsd-seccomp-amd64.policy
  8. avfsd-seccomp-arm.policy
  9. avfsd-seccomp-x86.policy
  10. cros-disks.conf
  11. cros-disks.gyp
  12. cros_disks_server.cc
  13. cros_disks_server.h
  14. daemon.cc
  15. daemon.h
  16. dbus_bindings/
  17. device_ejector.cc
  18. device_ejector.h
  19. device_event.cc
  20. device_event.h
  21. device_event_dispatcher_interface.h
  22. device_event_moderator.cc
  23. device_event_moderator.h
  24. device_event_moderator_unittest.cc
  25. device_event_queue.cc
  26. device_event_queue.h
  27. device_event_queue_unittest.cc
  28. device_event_source_interface.h
  29. disk.cc
  30. disk.h
  31. disk_manager.cc
  32. disk_manager.h
  33. disk_manager_unittest.cc
  34. disk_unittest.cc
  35. disks_testrunner.cc
  36. exfat_mounter.cc
  37. exfat_mounter.h
  38. external_mounter.cc
  39. external_mounter.h
  40. external_mounter_unittest.cc
  41. file_reader.cc
  42. file_reader.h
  43. file_reader_unittest.cc
  44. filesystem.cc
  45. filesystem.h
  46. format_manager.cc
  47. format_manager.h
  48. format_manager_observer_interface.h
  49. format_manager_unittest.cc
  50. fuse_mounter.cc
  51. fuse_mounter.h
  52. glib_process.cc
  53. glib_process.h
  54. glib_process_unittest.cc
  55. inherit-review-settings-ok
  56. main.cc
  57. metrics.cc
  58. metrics.h
  59. metrics_unittest.cc
  60. mount_entry.cc
  61. mount_entry.h
  62. mount_info.cc
  63. mount_info.h
  64. mount_info_unittest.cc
  65. mount_manager.cc
  66. mount_manager.h
  67. mount_manager_unittest.cc
  68. mount_options.cc
  69. mount_options.h
  70. mount_options_unittest.cc
  71. mounter.cc
  72. mounter.h
  73. mounter_unittest.cc
  74. ntfs_mounter.cc
  75. ntfs_mounter.h
  76. org.chromium.CrosDisks.conf
  77. platform.cc
  78. platform.h
  79. platform_unittest.cc
  80. process.cc
  81. process.h
  82. process_unittest.cc
  83. sandboxed_process.cc
  84. sandboxed_process.h
  85. session_manager_observer_interface.h
  86. session_manager_proxy.cc
  87. session_manager_proxy.h
  88. system_mounter.cc
  89. system_mounter.h
  90. system_mounter_unittest.cc
  91. udev_device.cc
  92. udev_device.h
  93. udev_device_unittest.cc
  94. usb-device-info
  95. usb_device_info.cc
  96. usb_device_info.h
  97. usb_device_info_unittest.cc