From patchwork Tue Mar 16 08:01:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 47812 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F13F2B7DAC for ; Tue, 16 Mar 2010 19:07:59 +1100 (EST) Received: from localhost ([127.0.0.1]:55369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrRkU-0008RB-RQ for incoming@patchwork.ozlabs.org; Tue, 16 Mar 2010 04:03:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrRip-0008R6-Tl for qemu-devel@nongnu.org; Tue, 16 Mar 2010 04:01:51 -0400 Received: from [199.232.76.173] (port=45293 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrRip-0008Qx-Di for qemu-devel@nongnu.org; Tue, 16 Mar 2010 04:01:51 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NrRio-0008Rn-8T for qemu-devel@nongnu.org; Tue, 16 Mar 2010 04:01:51 -0400 Received: from isrv.corpit.ru ([81.13.33.159]:46355) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NrRin-0008Rj-UO for qemu-devel@nongnu.org; Tue, 16 Mar 2010 04:01:50 -0400 Received: from [192.168.88.2] (mjt.vpn.tls.msk.ru [192.168.10.88]) by isrv.corpit.ru (Postfix) with ESMTP id F0C8D341A5; Tue, 16 Mar 2010 11:01:46 +0300 (MSK) (envelope-from mjt@tls.msk.ru) Message-ID: <4B9F3AEA.8010408@msgid.tls.msk.ru> Date: Tue, 16 Mar 2010 11:01:46 +0300 From: Michael Tokarev Organization: Telecom Service, JSC User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: qemu-devel X-Enigmail-Version: 0.95.0 OpenPGP: id=804465C5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [trivial one-liner] be more specific in -mem-path error messages X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The error message qemu gives when hugetlbfs is not accessible is cryptic at best: mkstemp: Permission denied Make it a bit more specific instead: unable to create backing store for hugepages: Permission denied Thanks! /mjt diff --git a/exec.c b/exec.c index 891e0ee..985bdde 100644 --- a/exec.c +++ b/exec.c @@ -2569,5 +2569,5 @@ static void *file_ram_alloc(ram_addr_t memory, const char *path) fd = mkstemp(filename); if (fd < 0) { - perror("mkstemp"); + perror("unable to create backing store for hugepages"); free(filename); return NULL;