Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Issue 2412063002: Fixed the bug that Drive doesn't appear on Files App on epehmeral mode. (Closed)

Created:
4 years, 2 months ago by oka
Modified:
4 years, 2 months ago
Reviewers:
hashimoto, fukino
CC:
chromium-reviews, yamaguchi+watch_chromium.org, oka+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed the bug that Drive doesn't appear on Files App on epehmeral mode. The CL https://codereview.chromium.org/2006503002 assumed file extended attributes and file attributes are available in GCache/v1/files to distinguish removable Drive caches. However, it is not true for ephemral mode, in which tmpfs is used to mount user directory. As a result in ephemeral mode initialization of file caches always fails and thus Drive folder doesn't appear in Files App. This CL fixes the issue by not touching file attributes if underlying filesystem doesn't support it. We compute the availability by checking if the errno is ENOTSUP after xattr() is called. BUG=650268 TEST=Using link and daisy, - on phemeral mode, - Drive appears in Files App. - Copy & paste between Download and Drive, Drive and Drive are successfully done. - Pin/unpin on Drive works. - /var/log/ui/ui.LATEST doesn't report any error in file_cache.cc . - on normal mode, - GCache/v1/files has +d attribute and user.GCacheFiles extended attribute. - +d file attribute is toggled as expected when a file is pinned/unpinned. Committed: https://crrev.com/7bd26bbf49860786603601e1aae0f9407a4c1292 Cr-Commit-Position: refs/heads/master@{#425263}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 2

Patch Set 3 : address comments. #

Total comments: 2

Patch Set 4 : address comments. #

Patch Set 5 : Update comment. #

Patch Set 6 : Return false if FixMetadataAndFileAttributes returns false. #

Patch Set 7 : nit #

Total comments: 8

Patch Set 8 : Address comments. #

Total comments: 2

Patch Set 9 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -4 lines) Patch
M components/drive/chromeos/file_cache.cc View 1 2 3 4 5 6 7 8 4 chunks +31 lines, -4 lines 0 comments Download

Messages

Total messages: 44 (25 generated)
oka
PTAL.
4 years, 2 months ago (2016-10-12 09:51:51 UTC) #3
fukino
In the bug description, please mention: - What was wrong with https://codereview.chromium.org/2006503002. - How this ...
4 years, 2 months ago (2016-10-12 10:34:29 UTC) #10
fukino
In the bug description, please mention: - What was wrong with https://codereview.chromium.org/2006503002. - How this ...
4 years, 2 months ago (2016-10-12 10:34:56 UTC) #12
oka
On 2016/10/12 10:34:56, fukino wrote: > In the bug description, please mention: > - What ...
4 years, 2 months ago (2016-10-13 05:43:00 UTC) #14
oka
https://codereview.chromium.org/2412063002/diff/20001/components/drive/chromeos/file_cache.cc File components/drive/chromeos/file_cache.cc (right): https://codereview.chromium.org/2412063002/diff/20001/components/drive/chromeos/file_cache.cc#newcode99 components/drive/chromeos/file_cache.cc:99: // filesystem does not support file attributes, as tmpfs ...
4 years, 2 months ago (2016-10-13 05:55:51 UTC) #15
hashimoto
https://codereview.chromium.org/2412063002/diff/40001/components/drive/chromeos/file_cache.cc File components/drive/chromeos/file_cache.cc (right): https://codereview.chromium.org/2412063002/diff/40001/components/drive/chromeos/file_cache.cc#newcode103 components/drive/chromeos/file_cache.cc:103: // TODO(oka): false should be returned. This can result ...
4 years, 2 months ago (2016-10-13 06:12:07 UTC) #17
oka
Update comment.
4 years, 2 months ago (2016-10-13 22:34:23 UTC) #19
oka
PTAL. https://codereview.chromium.org/2412063002/diff/40001/components/drive/chromeos/file_cache.cc File components/drive/chromeos/file_cache.cc (right): https://codereview.chromium.org/2412063002/diff/40001/components/drive/chromeos/file_cache.cc#newcode103 components/drive/chromeos/file_cache.cc:103: // TODO(oka): false should be returned. On 2016/10/13 ...
4 years, 2 months ago (2016-10-14 02:36:43 UTC) #20
oka
PTAL.
4 years, 2 months ago (2016-10-14 02:40:36 UTC) #22
hashimoto
https://codereview.chromium.org/2412063002/diff/120001/components/drive/chromeos/file_cache.cc File components/drive/chromeos/file_cache.cc (right): https://codereview.chromium.org/2412063002/diff/120001/components/drive/chromeos/file_cache.cc#newcode59 components/drive/chromeos/file_cache.cc:59: getxattr(path.value().c_str(), "user.foo", nullptr, 0); Please check that getxattr actually ...
4 years, 2 months ago (2016-10-14 04:16:49 UTC) #28
oka
PTAL. https://codereview.chromium.org/2412063002/diff/120001/components/drive/chromeos/file_cache.cc File components/drive/chromeos/file_cache.cc (right): https://codereview.chromium.org/2412063002/diff/120001/components/drive/chromeos/file_cache.cc#newcode59 components/drive/chromeos/file_cache.cc:59: getxattr(path.value().c_str(), "user.foo", nullptr, 0); On 2016/10/14 04:16:49, hashimoto ...
4 years, 2 months ago (2016-10-14 04:36:06 UTC) #30
hashimoto
lgtm thanks! https://codereview.chromium.org/2412063002/diff/140001/components/drive/chromeos/file_cache.cc File components/drive/chromeos/file_cache.cc (right): https://codereview.chromium.org/2412063002/diff/140001/components/drive/chromeos/file_cache.cc#newcode138 components/drive/chromeos/file_cache.cc:138: if (!IsFileAttributesSupported(path)) { Please add a comment ...
4 years, 2 months ago (2016-10-14 04:44:44 UTC) #32
oka
Address comments.
4 years, 2 months ago (2016-10-14 04:50:22 UTC) #33
oka
On 2016/10/14 04:44:44, hashimoto wrote: > lgtm thanks! > > https://codereview.chromium.org/2412063002/diff/140001/components/drive/chromeos/file_cache.cc > File components/drive/chromeos/file_cache.cc (right): ...
4 years, 2 months ago (2016-10-14 04:50:32 UTC) #34
oka
https://codereview.chromium.org/2412063002/diff/140001/components/drive/chromeos/file_cache.cc File components/drive/chromeos/file_cache.cc (right): https://codereview.chromium.org/2412063002/diff/140001/components/drive/chromeos/file_cache.cc#newcode138 components/drive/chromeos/file_cache.cc:138: if (!IsFileAttributesSupported(path)) { On 2016/10/14 04:44:44, hashimoto wrote: > ...
4 years, 2 months ago (2016-10-14 04:50:39 UTC) #35
fukino
lgtm
4 years, 2 months ago (2016-10-14 06:06:31 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2412063002/160001
4 years, 2 months ago (2016-10-14 06:34:52 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-10-14 06:59:29 UTC) #42
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 07:01:30 UTC) #44
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7bd26bbf49860786603601e1aae0f9407a4c1292
Cr-Commit-Position: refs/heads/master@{#425263}

Powered by Google App Engine
This is Rietveld 408576698