mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
9pfs: Introduce futimens file op
Add an futimens operation to the fs driver and use if when a fid has a valid file descriptor. This is required to support more cases where the client wants to do an action on an unlinked file which it still has an open file decriptor for. Only 9P2000.L was considered. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <20250312152933.383967-5-groug@kaod.org> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
This commit is contained in:
committed by
Christian Schoenebeck
parent
0c798dd523
commit
371a269ff8
@@ -129,6 +129,8 @@ struct FileOperations {
|
||||
int (*chown)(FsContext *, V9fsPath *, FsCred *);
|
||||
int (*mknod)(FsContext *, V9fsPath *, const char *, FsCred *);
|
||||
int (*utimensat)(FsContext *, V9fsPath *, const struct timespec *);
|
||||
int (*futimens)(FsContext *ctx, int fid_type, V9fsFidOpenState *fs,
|
||||
const struct timespec *times);
|
||||
int (*remove)(FsContext *, const char *);
|
||||
int (*symlink)(FsContext *, const char *, V9fsPath *,
|
||||
const char *, FsCred *);
|
||||
|
||||
Reference in New Issue
Block a user