Displaying 4 results from an estimated 4 matches for "gen_uuid".
2011 Aug 29
0
[PATCH] include: [sys/socket.h] Fix bind and connect attributes
Noticed while compiling some util-linux stuff:
gen_uuid.c:507:21: warning: passing argument 2 of 'connect' discards 'const' qualifier from pointer target type [enabled by default]
/usr/lib/klibc/include/sys/socket.h:248:14: note: expected 'struct sockaddr *' but argument is of type 'const struct sockaddr *'
Signed-off-by...
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with
multiple networks and vice-versa. updated patchset so
as to be applicable against current oVirt server HEAD
these patches may be applied in any order, they all
need to be pushed together
2009 Jul 09
2
permit many-to-many vms / networks relationship
This patchset contains changes to the ovirt server
frontend, backend, and tests components, permitting vms
to be associated with multiple networks and vice versa.
Also included are two patches which are required for the frontend
bits; a patch adding collapsable sections to the vm form, which
in itself depends on the second patch that provides default values
for the cpu and memory vm table fields
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...:memory_allocated,
- :vnic_mac_addr]
+ :memory_allocated]
+
STATE_PENDING = "pending"
STATE_CREATING = "creating"
@@ -379,6 +379,11 @@ class Vm < ActiveRecord::Base
return i
end
+ def self.gen_uuid
+ ["%02x"*4, "%02x"*2, "%02x"*2, "%02x"*2, "%02x"*6].join("-") %
+ Array.new(16) {|x| rand(0xff) }
+ end
+
# Make method for calling paginated vms easier for clients.
# TODO: Might want to have an optional param for per_page...