Received: from eggs.gnu.org ([2001:4830:134:3::10]:39538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxwEv-0002rf-9p for qemu-devel@nongnu.org; Fri, 29 Sep 2017 10:26:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxwEs-0001kn-6u for qemu-devel@nongnu.org; Fri, 29 Sep 2017 10:26:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58756) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dxwEs-0001kR-1h for qemu-devel@nongnu.org; Fri, 29 Sep 2017 10:26:02 -0400 References: <20170929111323.6308-1-michael@fritscher.net> From: Paolo Bonzini Message-ID: <497f0cbe-3441-ae6b-ad25-0ebc092318cc@redhat.com> Date: Fri, 29 Sep 2017 16:25:55 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Make 9pfs buildable for Windows List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Fritscher Cc: gkurz@linux.vnet.ibm.com, sw@weilnetz.de, aneesh.kumar@linux.vnet.ibm.com, mst@redhat.com, qemu-devel@nongnu.org List-ID: 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 tha= n >> e.g. CreateFile. Likewise for NtQueryAttributesFile, >> NtQueryDirectoryObject, etc. NtOpenDirectoryObject. :( >> >> Paolo >> > Hi, >=20 > 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 ag= o > (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