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: Paolo Bonzini
Subject: Re: [Qemu-devel] Make 9pfs buildable for Windows
Date: Fri, 29 Sep 2017 14:01:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 29/09/2017 13:13, Michael Fritscher wrote:
> "
> The biggest issue seems to be the *at stuff. I'll
> try to workaround this via getting the directories' path from the file
> descriptor with the /proc (as it is already done in the 9pfs_utils) -
> luckily,the mingw environment emulates the /proc. If this doesn't work
> I've another idea (the file descriptors needs to be "registered" with the
> path (and saved in a sparse vector or map with the fd as key and the path
> as value). The "big" solution would be to write a 9p_local_windows.c from
> scratch, but I would like to avoid it.
> "

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



reply via email to

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