diff options
| author | Greg Kurz <groug@kaod.org> | 2025-03-12 16:29:30 +0100 |
|---|---|---|
| committer | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2025-05-05 11:28:29 +0200 |
| commit | 371a269ff8ce561c28e4fa03bb49e4940f990637 (patch) | |
| tree | 42713e4b60379d25f0006ed08760d7926deb6023 /fsdev/file-op-9p.h | |
| parent | 0c798dd52355f3489b29bba0dfd7df0e24cfa1dd (diff) | |
| download | focaccia-qemu-371a269ff8ce561c28e4fa03bb49e4940f990637.tar.gz focaccia-qemu-371a269ff8ce561c28e4fa03bb49e4940f990637.zip | |
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>
Diffstat (limited to 'fsdev/file-op-9p.h')
| -rw-r--r-- | fsdev/file-op-9p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h index 26ba1438c0..b9dae8c84c 100644 --- a/fsdev/file-op-9p.h +++ b/fsdev/file-op-9p.h @@ -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 *); |