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

Issue 565343002: [NaCl SDK] nacl_io: Plumb through {,f}utime{,s} (Closed)

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

Description

[NaCl SDK] nacl_io: Plumb through {,f}utime{,s} * Switched KernelProxy to use utimens/futimens. * kernel_intercept.* forwards utime/utimes/futimes -> {,f}utimens. * Add Node::Futimens * Override FuseFsNode::Futimens * Add newlib headers to define utime/utimes/futimes * Glibc uses at_stim as timespec instead, add define for st_atimensec for compatibility with newlib. BUG=413412 R=sbc@chromium.org Committed: https://crrev.com/3806e82b48f9695f939db28621f9a2009bbd2a33 Cr-Commit-Position: refs/heads/master@{#294678}

Patch Set 1 #

Total comments: 10

Patch Set 2 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -72 lines) Patch
M native_client_sdk/src/libraries/nacl_io/fuse.h View 2 chunks +2 lines, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.h View 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc View 1 chunk +14 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/include/sys/time.h View 1 1 chunk +21 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/include/utime.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_intercept.h View 2 chunks +2 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc View 3 chunks +31 lines, -2 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.h View 3 chunks +2 lines, -2 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 5 chunks +27 lines, -10 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_wrap.h View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc View 3 chunks +7 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/library.dsc View 3 chunks +5 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/node.h View 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/node.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/ostime.h View 1 chunk +8 lines, -0 lines 0 comments Download
A + native_client_sdk/src/libraries/nacl_io/syscalls/futimes.c View 1 chunk +4 lines, -3 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fuse_fs_test.cc View 5 chunks +64 lines, -23 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc View 4 chunks +52 lines, -25 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/mock_kernel_proxy.h View 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
binji
6 years, 3 months ago (2014-09-12 19:33:17 UTC) #1
binji
+bradnelson
6 years, 3 months ago (2014-09-12 21:22:27 UTC) #3
Sam Clegg
great! lgtm https://codereview.chromium.org/565343002/diff/1/native_client_sdk/src/libraries/nacl_io/fuse.h File native_client_sdk/src/libraries/nacl_io/fuse.h (right): https://codereview.chromium.org/565343002/diff/1/native_client_sdk/src/libraries/nacl_io/fuse.h#newcode202 native_client_sdk/src/libraries/nacl_io/fuse.h:202: int (*utimens)(const char*, const struct timespec tv[2]); ...
6 years, 3 months ago (2014-09-12 21:36:27 UTC) #4
binji
https://codereview.chromium.org/565343002/diff/1/native_client_sdk/src/libraries/nacl_io/fuse.h File native_client_sdk/src/libraries/nacl_io/fuse.h (right): https://codereview.chromium.org/565343002/diff/1/native_client_sdk/src/libraries/nacl_io/fuse.h#newcode202 native_client_sdk/src/libraries/nacl_io/fuse.h:202: int (*utimens)(const char*, const struct timespec tv[2]); On 2014/09/12 ...
6 years, 3 months ago (2014-09-12 21:50:08 UTC) #5
Sam Clegg
lgtm
6 years, 3 months ago (2014-09-12 21:51:52 UTC) #6
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/3806e82b48f9695f939db28621f9a2009bbd2a33 Cr-Commit-Position: refs/heads/master@{#294678}
6 years, 3 months ago (2014-09-12 22:18:40 UTC) #7
binji
Committed patchset #2 (id:20001) manually as 3806e82 (presubmit successful).
6 years, 3 months ago (2014-09-12 22:18:40 UTC) #8
Sam Clegg
On 2014/09/12 22:18:40, binji wrote: > Committed patchset #2 (id:20001) manually as 3806e82 (presubmit successful). ...
6 years, 3 months ago (2014-09-12 23:33:04 UTC) #9
bradn
6 years, 3 months ago (2014-09-13 21:06:33 UTC) #11
Message was sent while issue was closed.
I think returning EINVAL is causing problems with a bunch of the ports.
It throws off all the tar implementations for instance.

Powered by Google App Engine
This is Rietveld 408576698