1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-14 05:57:54 +03:00
Zdenek Kabelac 85dbcda150 metadata: allow reading metadata with invalid creation_time
lvm2 till version 2.02.169 (commit 78d004efa8a1809cea68283e6204edfa9d7c1091)
was printing invalid creation_time argument into metadata on 32bit arch.

However with commit ba9820b14223b731125c83dbc9709aa44fdcdbf1 we started
to properly validate all input numbers and thus we refused to accept
invalid metadata with 'garbage' string - but this results in the
situation where metadata produced on older lvm2 on 32 bit architecture
will become unreadable after upgrade.

To fix this case - extend libdm parser in a way, that whenever we
find error integer value, we also check if the parsed value is not for
creation_time node and in this case we let the metadata pass through
with made-up date 2018-05-24 (release date of 2.02.169).
2019-05-10 14:40:11 +02:00
..
2018-12-14 15:08:34 +01:00
2018-11-17 00:30:50 +01:00
2018-12-01 01:04:27 +01:00
2015-08-17 17:20:14 +01:00
2018-11-17 00:30:50 +01:00
2018-11-03 16:10:32 +01:00