Commit 411e114c authored by Risan's avatar Risan Committed by Commit Bot

Change removable storage inotify to scan /storage

Since we are exposing /storage instead of /var/run/arc/media/removable
inside ARC++ container, we should also request scan through /storage so
that MediaScanner is not confused.

BUG=b:69078137
TEST=Manually verified. Google Photos doesn't show duplicate device
anymore (before, it shows one for /storage and one for
/var/run/arc/media/removable).

Change-Id: I93e9f029068110983d6033348acb9f2e85fd5f89
Reviewed-on: https://chromium-review.googlesource.com/c/1329820Reviewed-by: default avatarYusuke Sato <yusukes@chromium.org>
Reviewed-by: default avatarRyo Hashimoto <hashimoto@chromium.org>
Commit-Queue: Risan <risan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609989}
parent 82b5b7d7
......@@ -50,10 +50,9 @@ constexpr base::FilePath::CharType kCrosRemovableMediaDir[] =
FILE_PATH_LITERAL("/media/removable");
// The removable media path inside ARC container. This will be the path that
// is used in MediaScanner.scanFile request. The /var is mandatory here because
// it is the ARC container side path name.
// is used in MediaScanner.scanFile request.
constexpr base::FilePath::CharType kAndroidRemovableMediaDir[] =
FILE_PATH_LITERAL("/var/run/arc/media/removable");
FILE_PATH_LITERAL("/storage");
// How long to wait for new inotify events before building the updated timestamp
// map.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment