Changeset 2246 for trunk/host
- Timestamp:
- Jun 27, 2012, 10:29:47 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/fc17-dev (added) merged: 2081,2195-2198,2202,2204-2208,2210-2212,2215-2226,2230-2232,2235-2236,2238-2243,2245
- Property svn:mergeinfo changed
-
trunk/host/credit-card/host.py
r2049 r2246 70 70 ] 71 71 72 def drop_caches(): 73 with open("/proc/sys/vm/drop_caches", 'w') as f: 74 f.write("1") 75 72 76 def mkdir_p(path): # it's like mkdir -p 73 77 try: … … 98 102 self.types = types 99 103 def __enter__(self): 104 drop_caches() 100 105 self.dev = "/dev/%s/%s-root" % (HOST, self.guest) 101 106 … … 121 126 os.rmdir(self.mount) 122 127 shell.call("kpartx", "-d", self.dev) 128 drop_caches() 123 129 124 130 def main():
Note: See TracChangeset
for help on using the changeset viewer.