From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC7V4-0003ls-7o for qemu-devel@nongnu.org; Wed, 21 Aug 2013 08:27:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VC7Uy-0001lf-7c for qemu-devel@nongnu.org; Wed, 21 Aug 2013 08:26:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC7Ux-0001lY-W4 for qemu-devel@nongnu.org; Wed, 21 Aug 2013 08:26:52 -0400 From: Stefan Hajnoczi Date: Wed, 21 Aug 2013 14:26:39 +0200 Message-Id: <1377088001-8783-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] osdep: warn if opening a file O_DIRECT on tmpfs fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Deepak C Shetty , Stefan Hajnoczi Deepak C Shetty tried to open an image file O_DIRECT on tmpfs and received EINVAL. This error is too generic, making it hard to figure out that the problem is -drive ...,cache=none on tmpfs. Add a warning when opening a file O_DIRECT on tmpfs fails. Stefan Hajnoczi (2): stubs: add error_report() osdep: warn if opening a file O_DIRECT on tmpfs fails stubs/Makefile.objs | 1 + stubs/error-report.c | 12 ++++++++++++ util/osdep.c | 19 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 stubs/error-report.c -- 1.8.3.1