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] CA-34613: Make hp-rombios empty if it is not "COMPAQ"

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-34613: Make hp-rombios empty if it is not "COMPAQ"
From: Rob Hoes <rob.hoes@xxxxxxxxxx>
Date: Thu, 5 Nov 2009 10:41:46 +0000
Delivery-date: Thu, 05 Nov 2009 02:42:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 Rob Hoes <rob.hoes@xxxxxxxxxx>
CA-34613: Make hp-rombios empty if it is not "COMPAQ"

Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx>

diff -r e562f0f710e1 ocaml/xapi/bios_strings.ml
--- a/ocaml/xapi/bios_strings.ml        Thu Nov 05 10:20:49 2009 +0000
+++ b/ocaml/xapi/bios_strings.ml        Thu Nov 05 10:24:38 2009 +0000
@@ -80,7 +80,7 @@
                (fun () -> Unix.close mem)
        with _ -> ()
        end;
-       trim (remove_invisible hp_rombios)
+       if trim (remove_invisible hp_rombios) = "COMPAQ" then "COMPAQ" else ""
 
 let set_host_bios_strings ~__context ~host =
        info "Setting host BIOS strings.";

Attachment: ca-34613
Description: Text document

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] CA-34613: Make hp-rombios empty if it is not "COMPAQ", Rob Hoes <=