Changeset 146 for trunk/packages/sipb-xen-database
- Timestamp:
- Oct 9, 2007, 2:27:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-database/sipb-xen-database/client/etc/xen/sipb-database
r117 r146 5 5 6 6 connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen') 7 prefix = "d_" 7 8 8 9 # 'machine_name', and optionally 'cdrom_image', should get passed in … … 21 22 maxmem = memory 22 23 check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name)) 23 name = machine.name24 name = prefix + machine.name 24 25 check(re.match('^[0-9a-f-]+$', machine.uuid)) 25 26 uuid = machine.uuid … … 59 60 for d in machine.disks: 60 61 check(re.match('^[A-Za-z0-9]+$', d.guest_device_name)) 61 device = '/dev/xenvg/' + machine.name + '_' + d.guest_device_name62 device = '/dev/xenvg/' + prefix + machine.name + '_' + d.guest_device_name 62 63 dspec = 'phy:%s,%s%s,w' % (device, diskioemu, d.guest_device_name) 63 64 disk.append(dspec)
Note: See TracChangeset
for help on using the changeset viewer.