[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 16:14:41 +0200 |
User-agent: |
SquirrelMail/1.4.23 [SVN] |
> 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
>
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)
>From the "host side", 9pfs does nothing special I think.
Best regards,
Michael Fritscher
- [Qemu-devel] [PATCH 07/18] Fix unused variable error and unsuded function if FS_IOC_GETVERSION is not defined., (continued)
- [Qemu-devel] [PATCH 07/18] Fix unused variable error and unsuded function if FS_IOC_GETVERSION is not defined., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 02/18] #include <sys/vfs.h> is not available under Windows., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 17/18] Compile fixes for Windows., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 12/18] Buildfix in 9p-util.c., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 18/18] Enable 9pfs for Windows in configure / makefiles, Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 11/18] Sete ctx->xops to null on Windows., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 10/18] dirent has no d_off on Windows., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 13/18] fsetxattrat_nofollow doesn't seem to be defined on Windows - disable it., Michael Fritscher, 2017/09/29
- [Qemu-devel] [PATCH 09/18] Dont initialize fields which aren't available on Windows., Michael Fritscher, 2017/09/29
- Re: [Qemu-devel] Make 9pfs buildable for Windows, Paolo Bonzini, 2017/09/29
- Re: [Qemu-devel] Make 9pfs buildable for Windows,
Michael Fritscher <=