From: Ian Jackson Subject: [OSSTEST PATCH 27/29] Manual allocation: Provide JobInfo in mg-allocate Date: Mon, 7 Sep 2015 17:08:25 +0100 Message-ID: <1441642107-21826-28-git-send-email-ian.jackson@eu.citrix.com> References: <1441642107-21826-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZYzAM-0007FP-8h for xen-devel@lists.xenproject.org; Mon, 07 Sep 2015 16:21:10 +0000 In-Reply-To: <1441642107-21826-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Use manual_allocation_base_jobinfo to obtain some information which will go into `job' in the planner, and show up everywhere. Put just the request (from the command line) in the Xinfo. Signed-off-by: Ian Jackson --- v2: New patch --- mg-allocate | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mg-allocate b/mg-allocate index 14c9088..672d9ec 100755 --- a/mg-allocate +++ b/mg-allocate @@ -269,7 +269,10 @@ sub showposs ($) { sub plan () { my @got; - alloc_resources(sub { + + my $info = "manual ".manual_allocation_base_jobinfo(); + + alloc_resources(JobInfo => $info, sub { my ($plan, $mayalloc) = @_; @got = (); @@ -337,7 +340,7 @@ sub plan () { foreach my $req (@reqlist) { my $book= { Reso => $req->{Reso}, - Xinfo => "manual", + Xinfo => $req->{Ident}, Start => $planned->{Start}, End => $planned->{Start} + $duration, }; -- 1.7.10.4