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

Issue 660353003: [NaCl SDK] nacl_io: Fix utime() on directories. (Closed)

Created:
6 years, 2 months ago by Sam Clegg
Modified:
6 years, 2 months ago
Reviewers:
bradn, binji
CC:
chromium-reviews, binji+watch_chromium.org, Sam Clegg, bradnelson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[NaCl SDK] nacl_io: Fix utime() on directories. It was previously failing with EISDIR. This is because utime() internally acquires the node as O_WRONLY in order to call the Futimens method. This was failing because the check for opening a directory for write was done in Open() rather than CanOpen(). Committed: https://crrev.com/9664c614f4d853fd7887fcb4d8249183a1169f0e Cr-Commit-Position: refs/heads/master@{#300313}

Patch Set 1 #

Total comments: 3

Patch Set 2 : split change #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -7 lines) Patch
M native_client_sdk/src/libraries/nacl_io/kernel_handle.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/memfs/mem_fs.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/filesystem_test.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Sam Clegg
6 years, 2 months ago (2014-10-20 17:12:48 UTC) #2
Sam Clegg
I could split this change in two if you perfer?
6 years, 2 months ago (2014-10-20 17:14:44 UTC) #3
bradn
LGTM But I relatively strongly think you should add a constant for 0777 in node.h, ...
6 years, 2 months ago (2014-10-20 17:17:34 UTC) #5
Sam Clegg
Split out the mode bits change into a separate CL https://codereview.chromium.org/660353003/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc File native_client_sdk/src/libraries/nacl_io/kernel_handle.cc (right): https://codereview.chromium.org/660353003/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc#newcode48 ...
6 years, 2 months ago (2014-10-20 17:36:16 UTC) #6
bradn
lgtm
6 years, 2 months ago (2014-10-20 17:44:21 UTC) #7
binji
lgtm
6 years, 2 months ago (2014-10-20 18:03:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660353003/40001
6 years, 2 months ago (2014-10-20 18:31:07 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 2 months ago (2014-10-20 19:29:45 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 19:30:48 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9664c614f4d853fd7887fcb4d8249183a1169f0e
Cr-Commit-Position: refs/heads/master@{#300313}

Powered by Google App Engine
This is Rietveld 408576698