mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06: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:
parent
0c798dd523
commit
371a269ff8
7 changed files with 46 additions and 1 deletions
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue