Changeset 2351 for trunk/packages/invirt-remote/host/usr/sbin
- Timestamp:
- Jun 10, 2009, 5:47:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote/host/usr/sbin/invirt-listvms
r2245 r2351 33 33 data['start_time'] = float(xsc.read('', '%s/start_time' % data['vm'])) 34 34 data['uptime'] = time.time()-data['start_time'] 35 # CD , if there is one35 # CD or autoinstall, if we're using either 36 36 vbds = xsc.ls('', '/local/domain/%d/device/vbd' % domid) 37 37 for vbd in vbds: 38 38 dev = '/local/domain/%d/device/vbd/%s' % (domid, vbd) 39 if xsc.read('', '%s/device-type' % dev) == 'cdrom': 40 data['cdrom'] = xsc.read('', '%s/params' % xsc.read('', '%s/backend' % dev)) 39 dev_type = xsc.read('', '%s/device-type' % dev) 40 dev_params = xsc.read('', '%s/params' % xsc.read('', '%s/backend' % dev)) 41 if dev_type == 'cdrom': 42 data['cdrom'] = dev_params 43 elif dev_type == 'disk' and dev_params == '/dev/xenvg/s_install_hda': 44 data['autoinstall'] = True 41 45 42 46 return name, data
Note: See TracChangeset
for help on using the changeset viewer.