WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 2 of 3] CA-34933: link sessions and tasks in the datamo

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 2 of 3] CA-34933: link sessions and tasks in the datamodel in order to know whether a session is used
From: Thomas Gazagnaire <thomas.gazagnaire@xxxxxxxxxx>
Date: Tue, 8 Dec 2009 14:54:35 +0000
Delivery-date: Tue, 08 Dec 2009 06:57:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1260284073@steel>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Thomas Gazagnaire <thomas.gazagnaire@xxxxxxxxxx>
# Date 1260283364 0
# Node ID 3698135f9161a996255caf7d74cb3f5a829c5609
# Parent  2acddc1fa6a2fb77b1534a1089b28e4ba4412520
CA-34933: link sessions and tasks in the datamodel in order to know whether a 
session is used.

Signed-off-by: Thomas Gazagnaire <thomas.gazagnaire@xxxxxxxxxx>

diff -r 2acddc1fa6a2 -r 3698135f9161 ocaml/idl/datamodel.ml
--- a/ocaml/idl/datamodel.ml    Tue Dec 08 14:42:42 2009 +0000
+++ b/ocaml/idl/datamodel.ml    Tue Dec 08 14:42:44 2009 +0000
@@ -2787,6 +2787,7 @@
                  field ~in_product_since:rel_george ~qualifier:DynamicRO 
~default_value:(Some(VDateTime(Date.of_float 0.))) ~ty:DateTime 
"validation_time" "time when session was last validated";
                  field ~in_product_since:rel_george ~qualifier:DynamicRO 
~default_value:(Some(VString(""))) ~ty:String "auth_user_sid" "the subject 
identifier of the user that was externally authenticated. If a session instance 
has is_local_superuser set, then the value of this field is undefined.";
                  field ~in_product_since:rel_midnight_ride ~qualifier:StaticRO 
~default_value:(Some(VSet [])) ~ty:(Set(String)) "rbac_permissions" "list with 
all RBAC permissions for this session";
+          field ~in_product_since:rel_midnight_ride ~qualifier:DynamicRO 
~ty:(Set(Ref _task)) "tasks" "list of tasks created using the current session";
                ]
        ()
 
@@ -5846,6 +5847,7 @@
 
     (* subtasks hierarchy *)
     (_task, "subtask_of"), (_task, "subtasks");
+    (_task, "session"), (_session, "tasks");
     
     (_pif, "bond_slave_of"), (_bond, "slaves");
     (_bond, "master"), (_pif, "bond_master_of");
1 file changed, 2 insertions(+)
ocaml/idl/datamodel.ml |    2 ++


Attachment: xen-api.hg-3.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>