Thread (9 messages) flat view 9 messages, 6 authors, 2012-10-01

[RFC] Convert storage to use per-remote device directories

From: Frederic Danis <hidden>
Date: 2012-09-27 09:59:37

Hi everyone,

Here is my proposal for new storage directory structure using ini-file 
format.

Each adapter directory (/var/lib/bluetooth/<adapter address>/) will 
contain a config file for the local adapter and one directory per remote 
device.
The adapter config file just need to be converted to ini-file format 
with only 1 group called [adapter].

Each of remote device directories' name will be based on remote device 
address and address type (address#type).
This directory will contain a config file with remote device infos and a 
linkkey file.
Remote device config file will include a [device] group with general 
device infos (name, alias, profiles or services list, ...), and groups 
named by profile uuid (or service uuid) with related infos.

So the directory structure should be:
    /var/lib/bluetooth/<adapter address>/
        ./config
        ./<remote device address#type>/
            ./config
            ./linkkey
        ./<remote device address#type>/
            ./config
            ./linkkey
        ...

I attached sample of adapter and device config files.

-- 
Frederic Danis                            Open Source Technology Center
frederic.danis@intel.com                              Intel Corporation


---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help