Lines Matching defs:os
24 import os
513 self._pagesize = os.sysconf('SC_PAGESIZE')
516 self._uname = os.uname()
702 return self._pages_to_kb(os.sysconf('SC_PHYS_PAGES'))
743 return os.sysconf('SC_NPROCESSORS_ONLN')
1113 image = os.path.join(glancecache_dirname, iref)
1117 if os.path.isfile(downloading):
1119 os.unlink(image)
1120 os.unlink(downloading)
1122 elif os.path.exists(image):
1134 os.unlink(downloading)
1719 fp = os.path.join(sc_dir, 'zone-network-%d.xml' % vifid)
1730 path = os.path.join(CONF.solariszones.zones_suspend_path,
1754 for root, dirs, files in os.walk(sc_dir):
1756 fileroot = etree.parse(os.path.join(root, fname))
1777 fp = os.path.join(sc_dir, 'config-root.xml')
1800 fp = os.path.join(sc_dir, 'config-root-ssh-keys.xml')
1805 fp = os.path.join(sc_dir, 'hostname.xml')
1843 if os.path.isfile(sc_profile):
1845 elif os.path.isdir(sc_profile):
1847 os.path.join(sc_dir, 'sysconfig'))
1877 if not os.path.exists(VNC_SERVER_PATH):
1883 if not os.path.exists(XTERM_PATH):
2065 if os.listdir(sc_dir):
2241 os.chmod(sc_dir, 0755)
2561 logfiles = sorted(glob.glob(logfile_pattern), key=os.path.getmtime,
2564 size = os.path.getsize(file)
3186 out_path = os.path.join(tmpdir, snapshot_name)
3217 os.unlink(out_path)
3570 new_path = os.path.join(CONF.solariszones.zones_suspend_path,
3762 host_stats['vcpus'] = os.sysconf('SC_NPROCESSORS_ONLN')
3764 pages = os.sysconf('SC_PHYS_PAGES')