Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7726419ybi; Thu, 6 Jun 2019 00:06:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqySNYa1z5QxTmoZzS6z9DY6JvCKyvyXGnahGFVWCljnwVp6KOfHmsdWcMoxEmE6m4gWgwyy X-Received: by 2002:a65:60d2:: with SMTP id r18mr1972082pgv.217.1559804761222; Thu, 06 Jun 2019 00:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559804761; cv=none; d=google.com; s=arc-20160816; b=Sx5DGpo5L5/tSzSRCmK0p0bfWtGb1RSMiL98U+rBO+0VRC7F4SHmLu9HFFVc8ro9F0 b7z9e4RJEdMtSGrQfDm9LpeuVnUib7Ehdz2K4CyvToFYBbXcZmQvo+C9Mw65RS3BGshu ur9PinxEig0qVSW3OUVh2kCaZiDfkY/9rdAt6Nsl6/7KzzwwQrG3ViK9JP/g/I+esGh8 iRcQMEpgzpXCmKofVYTLIvPtpR5rHoPw4oCDsfQjlCkyl7YLutz86/bqCgEowxfOf9He csIUfl5aa3XPDHfotGakRYhNXF087/qTXeR7GHLdMNsnxImooFIwUu5f71x4y0Zh8qd1 uNWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:date:from :dkim-signature; bh=I6eoTCRoGN1ihLZussVO2rXcsg0C8cDyb8f3ygQYUWY=; b=L0MepnCxOg2okfLnadR/R998Th6T5JqhCpsgxSuNxJUkwoWFTHWOpkf3uolXrgqWf6 DtRYdWXU+YbDg9LAH4aWx+75ATAaZv4D6Q32ii/EuOghffEwkV0EH889K7A/vmdsYWwd epJjkidKSSBNHhz044dKWCg05dBE8DDKXwfN0hca4XFPoPRNvpaa+L165dD90Yb8W/9J vqbjt0o15/etxhLOkqhvRxN1f/7hzv9Emk3rQBowYbxedmETmfhjlcQL2KoTx5HMHdyZ FU+cYK7l0jnFIoZ6X97Ut5h+Ax3A0Ei2kHC9Lyk20t8eTdhzZfecFGlJunobhsbMBKLr b6Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b="JZ/uwpBP"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si938971pls.194.2019.06.06.00.05.30; Thu, 06 Jun 2019 00:06:01 -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; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b="JZ/uwpBP"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725766AbfFFHFV (ORCPT + 99 others); Thu, 6 Jun 2019 03:05:21 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:34398 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfFFHFV (ORCPT ); Thu, 6 Jun 2019 03:05:21 -0400 Received: by mail-lf1-f65.google.com with SMTP id y198so748395lfa.1 for ; Thu, 06 Jun 2019 00:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=I6eoTCRoGN1ihLZussVO2rXcsg0C8cDyb8f3ygQYUWY=; b=JZ/uwpBP2I2N58XOyP8kKUjmb07hd0gllBDpg42NJdQ6ZAKRNDdAsdm0Bz/lLIgagQ +ZpZittQNWgfkkXQYioe1XCIkEeiGVjap34NWCe12Y5t5DO0idU6WAkFDl2lnBd4Ahf1 klTMq8418rJJ9TlsZKfy26IrrYA1NfTpqpRsb7rwKCT9zTbnvQiyuYmzmypbPl3IqNHq WRfmQhTUvforqE8yAQOgwPYnz4NxSMiKtGeoAdXncXowJdpYTALrODJ4wPMcTQpGvQEs maBCWTdxAsX5jsQvLeVLN/RJWIOqHB6OJoO8u83hZcBtq4GrByi/+EdFWJMa+4C6Txi8 3KwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=I6eoTCRoGN1ihLZussVO2rXcsg0C8cDyb8f3ygQYUWY=; b=TMmPuyOWamTTIWXpMz7si+44DUrCNvryPXNGnB5EFUpjCMtAGatexXV9wwzN8CUtuq 5r7vvwv6ujzNCHadoCsBVFGvho4NB05dHw/FXNjM+8TyjwBQkPd9xF2GFyqhQcf7sLKB 9c1tgDSlwW4sYUaxdEgN4JQSmpBZRGzbC/maDE+Ya7tFc5GUTrZuNOMVkA/1hk1KSA2y cHfGw5HmEC5oqWmohMnGMUpeFMe0HCo7ukmuVeOfQiC6IJS9Dr3TSJJ89sfNtst3VZj2 Npke26/A+XT5olksnM84SUAjlYceJ3TpeVbOiCXCScfaIY1PUVVQXiHZ0wE3RiRL0PRL uj9g== X-Gm-Message-State: APjAAAXrKRy3VNNKJf7kwPbSy6+11zSRQJwcFh9R3aSsytv2C1DhRNrf cCxr8NsjtyrkkR9krsNyXYKDIA== X-Received: by 2002:a19:710b:: with SMTP id m11mr17947740lfc.135.1559804719157; Thu, 06 Jun 2019 00:05:19 -0700 (PDT) Received: from mlowasrzechonek2133 ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id o184sm159391lfo.37.2019.06.06.00.05.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 00:05:18 -0700 (PDT) From: "=?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek" X-Google-Original-From: =?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek Date: Thu, 6 Jun 2019 09:05:14 +0200 To: "Stotland, Inga" Cc: "jakub.witowski@silvair.com" , "linux-bluetooth@vger.kernel.org" , "Gix, Brian" Subject: Re: [PATCH BlueZ 0/3] Json storage refactor Message-ID: <20190606070514.izogw3k3u3moqwv3@mlowasrzechonek2133> Mail-Followup-To: "Stotland, Inga" , "jakub.witowski@silvair.com" , "linux-bluetooth@vger.kernel.org" , "Gix, Brian" References: <20190605130106.32372-1-jakub.witowski@silvair.com> <88230761cfc7650ab44f76f81189d78d3d439aad.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <88230761cfc7650ab44f76f81189d78d3d439aad.camel@intel.com> User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Inga, On 06/05, Stotland, Inga wrote: > On Wed, 2019-06-05 at 15:01 +0200, Jakub Witowski wrote: > > Netwrk keys, application keys and elements with models have been > > simplified in json storage file. Arrays objects are no longer > > required. > The proposed change would be okay if not for the fact that we plan to > re-use the same code for storing the information database for > provisioner/configuration client. That puts constraints on the format > in which the json data is stored. Could you please elaborate? The patchset doesn't change much in terms of JSON format, it just replaces thing like: "netKeys": [ { "index": "0000", }, { "index": "0001", } ], "elements": [ { "elementIndex": 0, } ] with: "netKeys": { "0000": { }, "0001": { } }, "elements": { "0": { } } The latter format should allow storing exactly the same information, but in a slightly more straightforward manner. > (...) use customized routines to implement them. > That should allow you to keep local node configuration in your own > format. We would very much like to avoid vendor patches. From our POV the whole point of open source collaboration is to make the *mainline* usable for as many people as possible. regards -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND