Changeset 2204
- Timestamp:
 - May 25, 2012, 12:50:59 AM (13 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          branches/fc17-dev/host/credit-card/host.py (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/fc17-dev/host/credit-card/host.py
r2049 r2204 70 70 ] 71 71 72 def drop_caches(): 73 with open("/proc/sys/vm/drop_caches") 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.
      