From: Szymon Janc <szymon.janc@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Szymon Janc <szymon.janc@tieto.com>,
"linux-bluetooth@vger.kernel.org development"
<linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH 2/5] android/bluetooth: Use defines for settings and devices files paths
Date: Tue, 21 Jan 2014 18:41:44 +0100 [thread overview]
Message-ID: <1699475.kPZvhNixD9@athlon> (raw)
In-Reply-To: <2F525C49-B02B-4A87-8CAE-633BF53A8ADF@holtmann.org>
Hi Marcel,
On Tuesday 21 January 2014 08:54:35 Marcel Holtmann wrote:
> Hi Szymon,
>=20
> > ---
> > android/bluetooth.c | 24 +++++++++++-------------
> > 1 file changed, 11 insertions(+), 13 deletions(-)
> >=20
> > diff --git a/android/bluetooth.c b/android/bluetooth.c
> > index 8f08122..3314267 100644
> > --- a/android/bluetooth.c
> > +++ b/android/bluetooth.c
> > @@ -54,6 +54,9 @@
> >=20
> > #define DUT_MODE_FILE "/sys/kernel/debug/bluetooth/hci%u/dut_mode"
> >=20
> > +#define SETTINGS_FILE ANDROID_STORAGEDIR"/settings"
> > +#define DEVICES_FILE ANDROID_STORAGEDIR"/devices=E2=80=9D
>=20
> is there any good reason to keep cached devices together with the bon=
ded
> devices? I get the feeling a cached device should be safe to throw aw=
ay. So
> deleting the cache file should not cause any problems. Meaning it sho=
uld be
> a separate file.
I'm fine with having separate files too (even have this implemented on =
my=20
local branch), but wanted to avoid handling multiple files. Anyway, add=
/remove=20
bond doesn't happen that often so maybe this is not a problem.
So, is "device_cache" name OK? Or just "cache"?
--=20
Szymon K. Janc
szymon.janc@gmail.com
next prev parent reply other threads:[~2014-01-21 17:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-21 15:01 [PATCH 0/5] Remote device cache support Szymon Janc
2014-01-21 15:01 ` [PATCH 1/5] android/bluetooth: Split devices list to devices and bonded_devices Szymon Janc
2014-01-21 15:01 ` [PATCH 2/5] android/bluetooth: Use defines for settings and devices files paths Szymon Janc
2014-01-21 16:54 ` Marcel Holtmann
2014-01-21 17:41 ` Szymon Janc [this message]
2014-01-21 19:13 ` Marcel Holtmann
2014-01-21 15:01 ` [PATCH 3/5] android/bluetooth: Always store device info Szymon Janc
2014-01-21 15:01 ` [PATCH 4/5] android/bluetooth: Add support for caching remote " Szymon Janc
2014-01-21 15:01 ` [PATCH 5/5] android/bluetooth: Add support for loading caches devices from storage Szymon Janc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1699475.kPZvhNixD9@athlon \
--to=szymon.janc@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=szymon.janc@tieto.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox