MCPcopy Create free account
hub / github.com/apache/cloudstack / clone

Method clone

scripts/vm/hypervisor/xenserver/xcposs/NFSSR.py:248–256  ·  view source on GitHub ↗
(self, sr_uuid, vdi_uuid)

Source from the content-addressed store, hash-verified

246 return st[stat.ST_MTIME]
247
248 def clone(self, sr_uuid, vdi_uuid):
249 timestamp_before = int(self.get_mtime(self.sr.path))
250 ret = super(NFSFileVDI, self).clone(sr_uuid, vdi_uuid)
251 timestamp_after = int(self.get_mtime(self.sr.path))
252 if timestamp_after == timestamp_before:
253 util.SMlog("SR dir timestamp didn't change, updating")
254 timestamp_after += 1
255 os.utime(self.sr.path, (timestamp_after, timestamp_after))
256 return ret
257
258
259if __name__ == '__main__':

Callers 13

startingTagFunction · 0.45
angular.jsFile · 0.45
renderFunction · 0.45
jquery-1.7.2.jsFile · 0.45
testGetDifferenceDaysMethod · 0.45
statementTimeMethod · 0.45
jquery.jsFile · 0.45
valuesMethod · 0.45
less.min.jsFile · 0.45

Calls 2

get_mtimeMethod · 0.95
intFunction · 0.85