From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCRCh-0006BL-0W for qemu-devel@nongnu.org; Thu, 22 Aug 2013 05:29:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCRCY-0007pq-1u for qemu-devel@nongnu.org; Thu, 22 Aug 2013 05:29:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCRCX-0007pQ-Qi for qemu-devel@nongnu.org; Thu, 22 Aug 2013 05:29:09 -0400 From: Stefan Hajnoczi Date: Thu, 22 Aug 2013 11:29:01 +0200 Message-Id: <1377163743-25029-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] osdep: warn if open(O_DIRECT) on fails with EINVAL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Markus Armbruster , Stefan Hajnoczi , Deepak C Shetty After trying out a few approaches, here is what I think is the simplest viable way to print a user-friendly warning if opening a file O_DIRECT fails with EINVAL. This happens on Linux tmpfs. We don't really know why we got EINVAL but if O_DIRECT was used it's a good clue that the file system does not support O_DIRECT. Stefan Hajnoczi (2): libcacard: link against qemu-error.o for error_report() osdep: warn if open(O_DIRECT) on fails with EINVAL libcacard/Makefile | 3 ++- util/osdep.c | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) -- 1.8.3.1