qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Make 9pfs buildable for Windows


From: Michael Fritscher
Subject: Re: [Qemu-devel] Make 9pfs buildable for Windows
Date: Fri, 29 Sep 2017 20:09:11 +0200
User-agent: SquirrelMail/1.4.23 [SVN]

> On 29/09/2017 16:14, Michael Fritscher wrote:
>>> Yes, that's pretty much the only way to do it; it's not the easiest
>>> thing because you have to use NT kernel APIs (NtCreateFile) rather than
>>> e.g. CreateFile.  Likewise for NtQueryAttributesFile,
>>> NtQueryDirectoryObject, etc. NtOpenDirectoryObject. :(
>>>
>>> Paolo
>>>
>> Hi,
>>
>> why do I need the NT* functions instead of the "normal" ones from
>> kernel32? And it was working even with the posix functions some time ago
>> (Which I'll port to current qemu atm)
>
> openat lets you create a file from a directory handle and relative path.
>  CreateFile doesn't let you do that, only the ntdll functions can.
>
> Paolo

Yes, my plan was to emulate this (as it was done in qemu a year or so ago
in Linux as well). So I can do that or use direct Win32/NT api. But then I
should rewrite 9p_local completely and make a 9p_windows I guess?

Michael





reply via email to

[Prev in Thread] Current Thread [Next in Thread]