From owner-freebsd-jail@FreeBSD.ORG Sat Mar 10 08:14:58 2012 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 220F3106564A for ; Sat, 10 Mar 2012 08:14:58 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id A12D08FC17 for ; Sat, 10 Mar 2012 08:14:57 +0000 (UTC) Received: by werl4 with SMTP id l4so2191026wer.13 for ; Sat, 10 Mar 2012 00:14:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=qCG49Z/nhdcAO2YL/4oEnd5Ka7csQEbHgkC7DNAUU84=; b=uaAHwFxIq2lfZbcTSK5JovMYQaC+xTMrzXlt6kSaxOSVuRPwBtEKzDI+yjM5CkTIGO 11DiB1HHGDQpatQ8wlMuXCOISjwvqbALz0Tum1EE8hdUswRg51hVefHJh7Nn/UPfBgb9 QmX8op7tGOyNmEhWZSC05Gum3t3zGwD9sI1NzoK6nrj/i5K7ps+HGFxqm8Cmpa+VwsPx Z43FFaFCMfLklfdJaYWlDUWT0oOsRcwLJNAAIn3v83RvLTCUxVIWw82kFXFbCdAzWT4T lqR3sYNVJ7ZmRVSWR8J9KR8xyXMano6CtqbhH1ENG89FCha4PsJMQaoaZ+P+u31KG2RZ h6Vg== Received: by 10.180.85.35 with SMTP id e3mr11352165wiz.6.1331365770913; Fri, 09 Mar 2012 23:49:30 -0800 (PST) Received: from strashydlo.local (gate19.robnet.pl. [194.105.132.219]) by mx.google.com with ESMTPS id h19sm11905237wiw.9.2012.03.09.23.49.29 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Mar 2012 23:49:29 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Sat, 10 Mar 2012 08:49:24 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Thomas Steen Rasmussen Message-ID: <20120310074923.GA89251@strashydlo.local> Mail-Followup-To: Thomas Steen Rasmussen , freebsd-jail@freebsd.org References: <4F5932FB.4060909@gibfest.dk> <4F5A6BCE.7060108@gibfest.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4F5A6BCE.7060108@gibfest.dk> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-jail@freebsd.org Subject: Re: Using jail name in rctl(8) doesn't work - jail id works X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2012 08:14:58 -0000 On Fri, Mar 09, 2012 at 09:45:02PM +0100, Thomas Steen Rasmussen wrote: > On 08-03-2012 23:30, Thomas Steen Rasmussen wrote: > > Hello, > > > > When I specify an rctl(8) rule for a jail using > > the jail name it doesn't work. Displaying > > resource usage doesn't work either, when > > using the jail name, like "rctl -hu jail:myjail" > > > > On the other hand, if I run "rctl -hu jail:3" > > where 3 is the jail id, it works as expected. > > > > The manpage examples use the jail name so > > it should work. Any idea why it doesn't ? I am > > using 9.0-REL on this system. > > > > Should I submit a PR with relevant examples ? > Hello, > > I submitted the PR which has more information. > jexec(8) is also unable to convert the jail name to jail id on > this sıstem. > My jails are created and started using ezjail, if that matters. > > Link to the PR: > http://www.freebsd.org/cgi/query-pr.cgi?pr=165886 Reason for this is that both rctl(8) and jexec(8) use jail names, not jail hostnames, and jls(8) called without arguments displays jail hostname, not jail name.