From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 86FFACF9C for ; Thu, 10 May 2018 16:05:45 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2018 07:05:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,385,1520924400"; d="scan'208";a="57527863" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by orsmga002.jf.intel.com with ESMTP; 10 May 2018 07:05:42 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.125]) by IRSMSX109.ger.corp.intel.com ([169.254.13.176]) with mapi id 14.03.0319.002; Thu, 10 May 2018 15:05:41 +0100 From: "Pattan, Reshma" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "Richardson, Bruce" , "thomas@monjalon.net" Thread-Topic: [dpdk-dev] [PATCH v2 3/4] eal: add directory for DPDK runtime data Thread-Index: AQHT4HwcfM7dW4t1PkqQ8VOjcvoqV6QpDgRQ Date: Thu, 10 May 2018 14:05:41 +0000 Message-ID: <3AEA2BF9852C6F48A459DA490692831F2A2EF63F@irsmsx110.ger.corp.intel.com> References: <714f609daed88d377d04e41f14ab53bbd72945cd.1525090086.git.anatoly.burakov@intel.com> In-Reply-To: <714f609daed88d377d04e41f14ab53bbd72945cd.1525090086.git.anatoly.burakov@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 3/4] eal: add directory for DPDK runtime data 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: , X-List-Received-Date: Thu, 10 May 2018 14:05:46 -0000 Hi, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Anatoly Burakov > Sent: Monday, April 30, 2018 1:09 PM > To: dev@dpdk.org > Cc: Richardson, Bruce ; thomas@monjalon.net > Subject: [dpdk-dev] [PATCH v2 3/4] eal: add directory for DPDK runtime da= ta >=20 > Currently, during runtime, DPDK will store a bunch of files here and ther= e (in > /var/run, /tmp or in $HOME). Fix it by creating a DPDK-specific runtime > directory, under which all runtime data will be placed. The template for > creating this runtime directory is the following: >=20 > /dpdk// >=20 > Where is set to either "/var/run" if run as root, or > $XDG_RUNTIME_DIR if run as non-root, with a fallback to /tmp if > $XDG_RUNTIME_DIR is not defined. So, for example, if run as root, by defa= ult > all runtime data will be stored at /var/run/dpdk/rte/. >=20 > There is no equivalent of "mkdir -p", so we will be creating the path ste= p by > step. >=20 > Nothing uses this new path yet, changes for that will come in next commit= . >=20 > Signed-off-by: Anatoly Burakov > --- > lib/librte_eal/bsdapp/eal/eal.c | 68 > ++++++++++++++++++++++++++++++++++ > lib/librte_eal/common/eal_filesystem.h | 8 ++++ > lib/librte_eal/linuxapp/eal/eal.c | 67 > +++++++++++++++++++++++++++++++++ > 3 files changed, 143 insertions(+) >=20 Looks good to me. Reviewed-by: Reshma Pattan