From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A97CFC04AB1 for ; Thu, 9 May 2019 17:58:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B7902085A for ; Thu, 9 May 2019 17:58:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726682AbfEIR6F (ORCPT ); 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