Received: from eggs.gnu.org ([2001:4830:134:3::10]:60157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPstZ-0002sG-33 for qemu-devel@nongnu.org; Thu, 13 Aug 2015 09:50:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPstY-0001OD-8X for qemu-devel@nongnu.org; Thu, 13 Aug 2015 09:50:13 -0400 Date: Thu, 13 Aug 2015 15:50:02 +0200 From: Kevin Wolf Message-ID: <20150813135002.GC6922@noname.redhat.com> References: <1439393611-17984-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1439393611-17984-1-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block/raw-posix: Use raw_normalize_devicepath() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org Am 12.08.2015 um 17:33 hat Max Reitz geschrieben: > The filename given to qemu_open() in block/raw-posix.c should generally > have been processed by raw_normalize_devicepath(); unless we are only > probing (in which case the caller often checks whether the file is a > block device or not, and this property will be changed by > raw_normalize_devicepath() on NetBSD) or it is about a deprecated device > (i.e. floppy). > > Signed-off-by: Max Reitz The patch isn't actually doing as much as the commit message suggests: Some calls of qemu_open() where we know that normalising wouldn't change anything (because we're not on NetBSD or not using a block device) still don't have the raw_normalize_devicepath() call (e.g. raw_create() and cdrom_reopen()). I'm applying the patch anyway because the result is the same. Kevin