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

Unified Diff: native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc

Issue 565343002: [NaCl SDK] nacl_io: Plumb through {,f}utime{,s} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc b/native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc
index be3fe66c54cde08e5af136c77df821d56c692576..212f84ff8b74e5d5af324cb6d509ff31cefebb89 100644
--- a/native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc
+++ b/native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc
@@ -247,6 +247,20 @@ Error FuseFsNode::GetStat(struct stat* stat) {
return 0;
}
+Error FuseFsNode::Futimens(const struct timespec times[2]) {
+ int result;
+ if (!fuse_ops_->utimens) {
+ LOG_TRACE("fuse_ops_->utimens is NULL.");
+ return ENOSYS;
+ }
+
+ result = fuse_ops_->utimens(path_.c_str(), times);
+ if (result < 0)
+ return -result;
+
+ return result;
+}
+
Error FuseFsNode::VIoctl(int request, va_list args) {
LOG_ERROR("Ioctl not implemented for fusefs.");
return ENOSYS;

Powered by Google App Engine
This is Rietveld 408576698