openvstorage / qemu

Open vStorage Qemu tree.
Other
0 stars 3 forks source link

Snapshot timestamps created with qemu-img are unix 0 #3

Open grimpy opened 8 years ago

grimpy commented 8 years ago
# qemu-img create -f raw  openvstorage+tcp:10.103.3.23:26203/testje 2G
# qemu-img snapshot -c mysnap openvstorage+tcp:10.103.3.23:26203/testje
WARNING: Image format was not specified for 'json:{"port": 26203, "host": "10.103.3.23", "driver": "openvstorage", "volume": "testje", "transport": "tcp"}' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.

# qemu-img snapshot -l openvstorage+tcp:10.103.3.23:26203/testje
Snapshot list:
ID        TAG                 VM SIZE                DATE       VM CLOCK
mysnap    mysnap                    0 1970-01-01 01:00:00   00:00:00.000
gergerg   gergerg                   0 1970-01-01 01:00:00   00:00:00.000
cnanakos commented 8 years ago

That kind of information is not kept when a snapshot is taken so unix 0 is being used instead.

wimpers commented 8 years ago

@cnanakos

Doesn't the volumedriver store this info? Anyway we can provide this info?

wimpers commented 7 years ago

after discussion with @cnanakos voldrv doesn't hold that information yet.