ftpfs_utimens: update for fuse3, which uses timespec instead of utimbuf
This commit is contained in:
2
cache.c
2
cache.c
@@ -330,7 +330,7 @@ static int cache_truncate(const char *path, off_t size, struct fuse_file_info *f
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cache_utimens(const char *path, struct utimbuf *buf, struct fuse_file_info* fi)
|
static int cache_utimens(const char *path, const struct timespec *buf, struct fuse_file_info* fi)
|
||||||
{
|
{
|
||||||
int err = cache.next_oper->oper.utimens(path, buf, fi);
|
int err = cache.next_oper->oper.utimens(path, buf, fi);
|
||||||
if (!err)
|
if (!err)
|
||||||
|
3
ftpfs.c
3
ftpfs.c
@@ -21,7 +21,6 @@
|
|||||||
#include <fuse_opt.h>
|
#include <fuse_opt.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
#include <utime.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "charset_utils.h"
|
#include "charset_utils.h"
|
||||||
@@ -1021,7 +1020,7 @@ static int ftpfs_truncate(const char* path, off_t offset, struct fuse_file_info*
|
|||||||
return op_return(-EPERM, "ftpfs_truncate");
|
return op_return(-EPERM, "ftpfs_truncate");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ftpfs_utimens(const char* path, struct utimbuf* time, struct fuse_file_info* fi) {
|
static int ftpfs_utimens(const char* path, const struct timespec* time, struct fuse_file_info* fi) {
|
||||||
(void) path;
|
(void) path;
|
||||||
(void) time;
|
(void) time;
|
||||||
(void) fi;
|
(void) fi;
|
||||||
|
Reference in New Issue
Block a user