Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1114408yba; Thu, 9 May 2019 10:58:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUo76E4dl1KWhI8V+dY0Sx6EE/6tKdjZGjDnKz3Ez9IEQ/LjjE34glTURcVZTSH0ChcG+j X-Received: by 2002:a63:5659:: with SMTP id g25mr7462262pgm.59.1557424725760; Thu, 09 May 2019 10:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557424725; cv=none; d=google.com; s=arc-20160816; b=JZ0atvcemBCb0o/Dnumu3i0BeAHYZQTLY0DPUnurmjfuw2i+V4xCgEn8Rgm/Lf103D DYJhcQlKO+SWKh47sgB1HRSepBNVom/wcekYSOxxMPQzW5TuAN9Y+9Agyv6KJZB6IGbL YInDDTq5C/or9X7JRpNfQ/7frnAhWR578ZokZcSw8RqJkz4IFcaTLsDDJycHVZJaeg0C uBao1DbiAcGkhjqF3Xfdg5Fs/1YjWTatpr4XQCUKhDf7FCl6CY0DoDTtax/0bxTdp6kI alURSHP2S1NfrpTWWYeoxyl4w4Gm6qrOtFXkz9pxZWrgE/0tAuOXHwJzxmu+yIvzwQK7 Fw2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=GS82JlhbzWw7H9ldiv8seyPDDq2Lcrh3tJCRw4A4ZbM=; b=s+/uyLS48q1BZn3NiPMYpME4pkAuAfbIEIXQIifdJaD9tpygBxOy9JjsnMquZObdre UXZDsNFpbtE0N+UlxbW2kk2evMDrxwib1+jqhFlft245r2X/bNg21vVH8466xgwBNovv vyiwBkzRQucHnKvKVheAozuaNVC0IPjFH8ygSYRFzNNuBvV1+jiIv21vkwL/VpC68D+w 2ymA88vupr/Nu98bnk2fiUUX88UjwUKVAJuXj862Js3Bfdigsc9zKyt1oYClqNjD5UCv BgwSExUo7Zb2Rg0hFdPiU2/RS/yIEhM/bj9zOEuJ/N2iYiyj34pp9Ea9bFswKbLlQtJC yYOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si3784593plp.130.2019.05.09.10.58.13; Thu, 09 May 2019 10:58:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726658AbfEIR6F (ORCPT + 99 others); Thu, 9 May 2019 13:58:05 -0400 Received: from mga12.intel.com ([192.55.52.136]:5515 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726659AbfEIR6E (ORCPT ); Thu, 9 May 2019 13:58:04 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 May 2019 10:58:04 -0700 X-ExtLoop1: 1 Received: from bgix-dell-lap.sea.intel.com ([10.251.10.18]) by fmsmga004.fm.intel.com with ESMTP; 09 May 2019 10:58:04 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: inga.stotland@intel.com, brian.gix@intel.com Subject: [PATCH BlueZ v5 0/2] mesh: node dir Restructure, and keyring Date: Thu, 9 May 2019 10:57:37 -0700 Message-Id: <20190509175739.16891-1-brian.gix@intel.com> X-Mailer: git-send-email 2.14.5 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This version 5 of the keyring has been restructured to separate the node filesystem rework for the keyring that requires it. See the mesh/README file for the new directory layout of the node. Instead runtime saving of full path of the node.json file, we save it's base path, and use that to construct all the paths needed in realtime. We also have changed ownership of this path to node.c, and when we remove the node, we recursively delete everything its entire tree. Brian Gix (2): mesh: Reconfigure node storage tree mesh: Add key storage Makefile.mesh | 1 + mesh/README | 34 ++++++- mesh/keyring.c | 297 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mesh/keyring.h | 49 ++++++++++ mesh/node.c | 16 ++-- mesh/node.h | 4 +- mesh/storage.c | 144 +++++++++++++++++----------- 7 files changed, 478 insertions(+), 67 deletions(-) create mode 100644 mesh/keyring.c create mode 100644 mesh/keyring.h -- 2.14.5