mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
dll: fuse: setcrtime, setchgtime
This commit is contained in:
parent
3d2de57e9d
commit
48ad297df1
@ -109,8 +109,8 @@ struct fuse_operations
|
||||
/* _ */ int (*getxtimes)(const char *path,
|
||||
struct fuse_timespec *bkuptime, struct fuse_timespec *crtime);
|
||||
/* _ */ int (*setbkuptime)(const char *path, const struct fuse_timespec *tv);
|
||||
/* _ */ int (*setchgtime)(const char *path, const struct fuse_timespec *tv);
|
||||
/* _ */ int (*setcrtime)(const char *path, const struct fuse_timespec *tv);
|
||||
/* S */ int (*setchgtime)(const char *path, const struct fuse_timespec *tv);
|
||||
/* S */ int (*setcrtime)(const char *path, const struct fuse_timespec *tv);
|
||||
/* S */ int (*chflags)(const char *path, uint32_t flags);
|
||||
/* _ */ int (*setattr_x)(const char *path, struct fuse_setattr_x *attr);
|
||||
/* _ */ int (*fsetattr_x)(const char *path, struct fuse_setattr_x *attr,
|
||||
|
@ -1316,6 +1316,24 @@ static NTSTATUS fsp_fuse_intf_SetBasicInfo(FSP_FILE_SYSTEM *FileSystem,
|
||||
return Result;
|
||||
}
|
||||
|
||||
if (0 != CreationTime && 0 != f->ops.setcrtime)
|
||||
{
|
||||
FspPosixFileTimeToUnixTime(CreationTime, (void *)&tv[0]);
|
||||
err = f->ops.setcrtime(filedesc->PosixPath, &tv[0]);
|
||||
Result = fsp_fuse_ntstatus_from_errno(f->env, err);
|
||||
if (!NT_SUCCESS(Result))
|
||||
return Result;
|
||||
}
|
||||
|
||||
if (0 != ChangeTime && 0 != f->ops.setchgtime)
|
||||
{
|
||||
FspPosixFileTimeToUnixTime(ChangeTime, (void *)&tv[0]);
|
||||
err = f->ops.setchgtime(filedesc->PosixPath, &tv[0]);
|
||||
Result = fsp_fuse_ntstatus_from_errno(f->env, err);
|
||||
if (!NT_SUCCESS(Result))
|
||||
return Result;
|
||||
}
|
||||
|
||||
return fsp_fuse_intf_GetFileInfoEx(FileSystem, filedesc->PosixPath, &fi,
|
||||
&Uid, &Gid, &Mode, FileInfo);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user