Re: [Qemu-devel] [PATCH 15/18] Fix unavailable fields in stbuf under Windows.

2017-11-06 Thread Paolo Bonzini
On 06/11/2017 16:23, Michael Fritscher wrote: >> Likewise, I think it should be struct FileOperations's lstat member that >> uses struct V9fsStatDotl instead of struct stat. Then >> stat_to_v9stat_dotl would be hidden inside 9p-local.c (and 9p-local.c >> isn't going to be used by Windows at all, s

Re: [Qemu-devel] [PATCH 15/18] Fix unavailable fields in stbuf under Windows.

2017-11-06 Thread Michael Fritscher
Hi, > Likewise, I think it should be struct FileOperations's lstat member that > uses struct V9fsStatDotl instead of struct stat. Then > stat_to_v9stat_dotl would be hidden inside 9p-local.c (and 9p-local.c > isn't going to be used by Windows at all, so this patch disappears). > > Paolo > At firs

Re: [Qemu-devel] [PATCH 15/18] Fix unavailable fields in stbuf under Windows.

2017-11-06 Thread Paolo Bonzini
On 29/09/2017 13:13, Michael Fritscher wrote: > @@ -886,14 +886,34 @@ static void stat_to_v9stat_dotl(V9fsState *s, const > struct stat *stbuf, > v9lstat->st_gid = stbuf->st_gid; > v9lstat->st_rdev = stbuf->st_rdev; > v9lstat->st_size = stbuf->st_size; > +#ifdef _WIN32 > +/* Blk