mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-26 12:32:54 -05:00
tst: passthrough-fuse: setcrtime
This commit is contained in:
@@ -259,6 +259,15 @@ static int ptfs_utimens(const char *path, const struct fuse_timespec tv[2])
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(_WIN64) || defined(_WIN32)
|
||||
static int ptfs_setcrtime(const char *path, const struct fuse_timespec *tv)
|
||||
{
|
||||
ptfs_impl_fullpath(path);
|
||||
|
||||
return -1 != setcrtime(path, tv) ? 0 : -errno;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(FSP_FUSE_USE_STAT_EX)
|
||||
static int ptfs_chflags(const char *path, uint32_t flags)
|
||||
{
|
||||
@@ -297,6 +306,9 @@ static struct fuse_operations ptfs_ops =
|
||||
#if defined(PTFS_UTIMENS)
|
||||
.utimens = ptfs_utimens,
|
||||
#endif
|
||||
#if defined(_WIN64) || defined(_WIN32)
|
||||
.setcrtime = ptfs_setcrtime,
|
||||
#endif
|
||||
#if defined(FSP_FUSE_USE_STAT_EX)
|
||||
.chflags = ptfs_chflags,
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user