diff --git a/src/fspp/fuse/Fuse.cpp b/src/fspp/fuse/Fuse.cpp index 02d05e8a..41bc1ee2 100644 --- a/src/fspp/fuse/Fuse.cpp +++ b/src/fspp/fuse/Fuse.cpp @@ -19,11 +19,6 @@ #include #include -#include -#include -#include -#include - #if defined(_MSC_VER) #include #endif @@ -480,14 +475,14 @@ int Fuse::ftruncate(int64_t size, uint64_t fh) { } } -int Fuse::utimens(const bf::path &path, const std::array times) { +int Fuse::utimens(const bf::path &path, const timespec lastAccessTime, const timespec lastModificationTime) { ThreadNameForDebugging _threadName("utimens"); #ifdef FSPP_LOG LOG(DEBUG, "utimens({}, _)", path); #endif try { ASSERT(is_valid_fspp_path(path), "has to be an absolute path"); - _fs->utimens(path, times[0], times[1]); + _fs->utimens(path, lastAccessTime, lastModificationTime); #ifdef FSPP_LOG LOG(DEBUG, "utimens({}, _): success", path); #endif diff --git a/src/fspp/fuse/Fuse.h b/src/fspp/fuse/Fuse.h index 37e0757a..e71b7d4c 100644 --- a/src/fspp/fuse/Fuse.h +++ b/src/fspp/fuse/Fuse.h @@ -49,7 +49,7 @@ public: int chown(const boost::filesystem::path &path, ::uid_t uid, ::gid_t gid); int truncate(const boost::filesystem::path &path, int64_t size); int ftruncate(int64_t size, uint64_t fh); - int utimens(const boost::filesystem::path &path, const std::array times); + int utimens(const boost::filesystem::path &path, const timespec lastAccessTime, const timespec lastModificationTime); int open(const boost::filesystem::path &path, uint64_t* fh, int flags); int release(uint64_t fh); int read(char *buf, size_t size, int64_t offset, uint64_t fh);