Received: from eggs.gnu.org ([2001:4830:134:3::10]:52154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIf2s-0004P8-HB for qemu-devel@nongnu.org; Fri, 24 Jul 2015 11:37:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIf2p-00089J-8m for qemu-devel@nongnu.org; Fri, 24 Jul 2015 11:37:58 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <20150724150020.GA26843@stefanha-thinkpad.redhat.com> Date: Fri, 24 Jul 2015 11:37:50 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <82E05471-B0FA-4819-9CEA-43153BBEDA1C@gmail.com> References: <4E49353C-F0D9-43CA-B4FE-BB5E85FCEEDC@gmail.com> <20150724150020.GA26843@stefanha-thinkpad.redhat.com> Subject: Re: [Qemu-devel] [PATCH v3] raw-posix.c: Make physical devices usable in QEMU under Mac OS X host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , qemu-devel qemu-devel , Qemu-block On Jul 24, 2015, at 11:00 AM, Stefan Hajnoczi wrote: > On Fri, Jul 17, 2015 at 08:19:16PM -0400, Programmingkid wrote: >> @@ -2014,7 +2015,9 @@ kern_return_t GetBSDPath( io_iterator_t = mediaIterator, char *bsdPath, CFIndex ma >> if ( bsdPathAsCFString ) { >> size_t devPathLength; >> strcpy( bsdPath, _PATH_DEV ); >> - strcat( bsdPath, "r" ); >> + if (flags & BDRV_O_NOCACHE) { >> + strcat(bsdPath, "r"); >> + } >> devPathLength =3D strlen( bsdPath ); >> if ( CFStringGetCString( bsdPathAsCFString, bsdPath + = devPathLength, maxPathSize - devPathLength, kCFStringEncodingASCII ) ) { >> kernResult =3D KERN_SUCCESS; >=20 > This hunk should be a separate patch. =20 If I made the changes to the GetBSDPath() function its own patch, QEMU = would no longer compile. The addition of a flags argument would cause = this issue.=