(self, sr_uuid, vdi_uuid)
| 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 | |
| 259 | if __name__ == '__main__': |