From patchwork Mon Apr 23 11:14:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 38688 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 56AB22951; Mon, 23 Apr 2018 13:14:18 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id ADC9525A1 for ; Mon, 23 Apr 2018 13:14:16 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Apr 2018 04:14:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,317,1520924400"; d="scan'208";a="222611897" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga006.fm.intel.com with ESMTP; 23 Apr 2018 04:14:14 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w3NBEDwL005714; Mon, 23 Apr 2018 12:14:13 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id w3NBED6A002203; Mon, 23 Apr 2018 12:14:13 +0100 Received: (from aburakov@localhost) by sivswdev01.ir.intel.com with LOCAL id w3NBEDuI002199; Mon, 23 Apr 2018 12:14:13 +0100 From: Anatoly Burakov To: dev@dpdk.org Cc: bruce.richardson@intel.com Date: Mon, 23 Apr 2018 12:14:13 +0100 Message-Id: <738d08e521a8987ceeb2748db5b765d8b8531e54.1524481846.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] fbarray: make all fbarrays hidden files X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" fbarray stores its data in a shared file, which is not hidden. This leads to polluting user's HOME directory with visible files when running DPDK as non-root. Change fbarray to always create hidden files by default. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- Notes: Is /tmp always user-accessible? Maybe not use home directory at all? lib/librte_eal/common/eal_filesystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_filesystem.h b/lib/librte_eal/common/eal_filesystem.h index ad059ef..fe4c455 100644 --- a/lib/librte_eal/common/eal_filesystem.h +++ b/lib/librte_eal/common/eal_filesystem.h @@ -13,7 +13,7 @@ /** Path of rte config file. */ #define RUNTIME_CONFIG_FMT "%s/.%s_config" -#define FBARRAY_FMT "%s/%s_%s" +#define FBARRAY_FMT "%s/.%s_%s" #include #include