From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB5r4-0007od-6e for qemu-devel@nongnu.org; Tue, 13 Jan 2015 13:06:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB5r1-0002A3-FR for qemu-devel@nongnu.org; Tue, 13 Jan 2015 13:06:14 -0500 Received: from mail-lb0-f173.google.com ([209.85.217.173]:61377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB5r1-00029z-9D for qemu-devel@nongnu.org; Tue, 13 Jan 2015 13:06:11 -0500 Received: by mail-lb0-f173.google.com with SMTP id z12so3974655lbi.4 for ; Tue, 13 Jan 2015 10:06:10 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20150106140224.GK29775@stefanha-thinkpad.redhat.com> From: Peter Maydell Date: Tue, 13 Jan 2015 18:05:50 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v4] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Programmingkid Cc: Stefan Hajnoczi , qemu-devel qemu-devel On 13 January 2015 at 17:52, Programmingkid wrote: > What is the exact command you use with QEMU involving the /dev/null device? "make check" includes some tests which do this... > What value is suppose to be returned when using a device like /dev/null? I think we should fall back to the "try lseek" code path, as we do on Linux. (That will return zero, as it happens.) -- PMM