mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
9p: darwin: Handle struct stat(fs) differences
Signed-off-by: Keno Fischer <keno@juliacomputing.com> Signed-off-by: Michael Roitzsch <reactorcontrol@icloud.com> [Will Cohen: - Note lack of f_namelen and f_frsize on Darwin - Ensure that tv_sec and tv_nsec are both initialized for Darwin and non-Darwin] Signed-off-by: Will Cohen <wwcohen@gmail.com> Message-Id: <20220227223522.91937-4-wwcohen@gmail.com> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
This commit is contained in:
parent
6450084a66
commit
f41db099c7
3 changed files with 37 additions and 5 deletions
|
@ -439,7 +439,9 @@ static int synth_statfs(FsContext *s, V9fsPath *fs_path,
|
|||
stbuf->f_bsize = 512;
|
||||
stbuf->f_blocks = 0;
|
||||
stbuf->f_files = synth_node_count;
|
||||
#ifndef CONFIG_DARWIN
|
||||
stbuf->f_namelen = NAME_MAX;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue