From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3twU-0003eG-En for qemu-devel@nongnu.org; Tue, 21 Aug 2012 15:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3twT-0002NI-3K for qemu-devel@nongnu.org; Tue, 21 Aug 2012 15:16:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3twS-0002NA-Qz for qemu-devel@nongnu.org; Tue, 21 Aug 2012 15:16:45 -0400 Message-ID: <5033DE99.4080204@redhat.com> Date: Tue, 21 Aug 2012 13:16:41 -0600 From: Eric Blake MIME-Version: 1.0 References: <20120821115754.GA5855@bogon.sigxcpu.org> In-Reply-To: <20120821115754.GA5855@bogon.sigxcpu.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigB945D8BF9C67CA071C0CE090" Subject: Re: [Qemu-devel] [PATCH] Add guest-get-hostname to retrieve the guests current hostname List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Guido_G=FCnther?= Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB945D8BF9C67CA071C0CE090 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 08/21/2012 05:57 AM, Guido G=FCnther wrote: > This allows to retrieve the guest's hostname via gethostname(2). >=20 > This can be useful to identify a VM e.g. one without network. >=20 > Signed-off-by: Guido G=FCnther > --- > We have an API in libvirt for that (virDomainGetHostname). > Cheers > -- Guido Still, this feels like a new feature and not a bug fix, so > + > +## > +# @guest-get-hostname: > +# > +# Get the guest's hostname > +# > +# Returns: The guest's hostname > +# > +# Since: 1.2 =2E..this should probably be 1.3. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigB945D8BF9C67CA071C0CE090 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJQM96aAAoJEKeha0olJ0Nq3D8IAKTr3byACmzrw6evsWcG5bVI P9eQ4TJWD8Rl+88ac9V3IUggq9AfXgQYf0v/AnydRns6EeDL9BaspuP9PTYZH8Rv hng5GPyoWw8z2NGbIahe2Ytr/+60qE3CHJ46zjQn64CZBhhERf9KGRfvxBp6Ryfo ZP2eodzZc0tRahZPN4Ofu46L8S9UDEZq2fAANXuDN/qx3JTnqAVC5emzN/Y7xanS ShxytGVti+PnIqpHkyxFF/GzUQ2xwXpXMwV4f+wzLBlRuimxF9QHxq46GOkNbEnB h/zFH8g8KrI33EvHRXDi+CjzolcX9u/qz0mJXN0j89p5BaJqFHdIUuDyaVGK5jI= =0W1U -----END PGP SIGNATURE----- --------------enigB945D8BF9C67CA071C0CE090--