/* * TODO: not sure if must needed. */ int OssFS::utime(const char *path, struct utimbuf *ubuf) { log_debug("path:[%s]", path); OssObject *obj = this->find_file(path); if (obj == NULL) { return -ENOENT; } if (NULL == ubuf) { //input time is NULL, use current system time time_t tmpTime = time(0); return obj->set_ftime(tmpTime, tmpTime); } else { log_debug("ubuf->actime %Zd, ubuf->modtime %Zd", ubuf->actime, ubuf->modtime); obj->set_ftime(ubuf->actime, ubuf->modtime); } return 0; }