From: Johan Hedberg <johan.hedberg@gmail.com>
To: Bastien Nocera <hadess@hadess.net>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Add adaptername plugin
Date: Tue, 28 Jun 2011 13:23:06 +0300 [thread overview]
Message-ID: <20110628102306.GA4652@dell.ger.corp.intel.com> (raw)
In-Reply-To: <1309252884-5385-1-git-send-email-hadess@hadess.net>
Hi Bastien,
On Tue, Jun 28, 2011, Bastien Nocera wrote:
> Replacing the name setting code in src/adapter.c.
>
> Moving the adapter naming allows us to use the /etc/machine-info [1]
> pretty hostname, as implemented by hostnamed [2] in systemd.
>
> If /etc/machine-info is not present, the adapter name stored
> on disk in /var/lib/bluetooth will be used. If no adapter name
> has been set yet, the default from the main.conf will be used.
>
> We don't currently number the name of hci0 if a pretty name is
> available, but we should instead number it if it happens not
> to be the default adapter. As we cannot be told when the default
> adapter changes, we'll behave this way for now.
>
> Note that when an adapter name is set automatically from
> the pretty hostname, changing it through the D-Bus interface
> will fail.
>
> [1]: http://0pointer.de/public/systemd-man/machine-info.html
> [2]: http://www.freedesktop.org/wiki/Software/systemd/hostnamed
> ---
> Makefile.am | 3 +
> configure.ac | 4 +
> plugins/adaptername.c | 321 +++++++++++++++++++++++++++++++++++++++++++++++++
> src/adapter.c | 66 ----------
> 4 files changed, 328 insertions(+), 66 deletions(-)
> create mode 100644 plugins/adaptername.c
Thanks for the quick response. After a couple of more (minor) coding
style fixes the patch is now upstream.
Johan
next prev parent reply other threads:[~2011-06-28 10:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 11:29 [PATCH 1/3] Simplify "SetName" D-Bus call Bastien Nocera
2011-06-22 11:29 ` [PATCH 2/3] Add ability to block name changes Bastien Nocera
2011-06-22 11:29 ` [PATCH 3/3] Add adaptername plugin Bastien Nocera
2011-06-23 13:42 ` [PATCH] " Bastien Nocera
2011-06-23 13:44 ` Bastien Nocera
2011-06-28 8:51 ` Johan Hedberg
2011-06-28 9:21 ` Bastien Nocera
2011-06-28 10:23 ` Johan Hedberg [this message]
2011-06-28 9:21 ` Bastien Nocera
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=20110628102306.GA4652@dell.ger.corp.intel.com \
--to=johan.hedberg@gmail.com \
--cc=hadess@hadess.net \
--cc=linux-bluetooth@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).