All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit eaebc271 authored by Hussamuddin Nasir's avatar Hussamuddin Nasir

Not sure if it's a Xen4.9 feature or a bug, but Dom0 also shows up in the list...

Not sure if it's a Xen4.9 feature or a bug, but Dom0 also shows up in the list of VMs when doing an "xl vm-list". Xen4.6 and older did not. The VM count reported was incorrect(1 extra because of Domain-0) in Xen 4.9. Added a grep to fix this and is backward compatible.
parent 85351e24
......@@ -91,7 +91,7 @@ static void num_vms_allocated( char *buf ) {
FILE *f;
int n;
f = popen( "sudo xl vm-list | wc -l", "r" );
f = popen( "sudo xl vm-list|grep -v Domain-0 | wc -l", "r" );
fscanf( f, "%d", &n );
pclose( f );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment