1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/device_mapper
Zdenek Kabelac 85dbcda150 metadata: allow reading metadata with invalid creation_time
lvm2 till version 2.02.169 (commit 78d004efa8)
was printing invalid creation_time argument into metadata on 32bit arch.

However with commit ba9820b142 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
..
datastruct device_mapper: move hash.[hc] to base/data-struct 2018-06-08 13:54:19 +01:00
ioctl headers: use configure.h as 1st. header 2018-12-14 15:09:13 +01:00
misc headers: use configure.h as 1st. header 2018-12-14 15:09:13 +01:00
mm device_mapper: optimize dm_pool_strndup 2018-12-01 01:04:27 +01:00
regex build: get separate builddir working again 2018-06-04 13:22:14 +01:00
vdo configure: avoid repeative inclusion of configure.h 2018-12-21 19:19:50 +01:00
all.h configure: avoid repeative inclusion of configure.h 2018-12-21 19:19:50 +01:00
libdm-common.c cleanup: move cast to det_t into MKDEV macro 2018-11-05 17:25:11 +01:00
libdm-common.h device_mapper: rename libdevmapper.h -> all.h 2018-06-08 12:31:45 +01:00
libdm-config.c metadata: allow reading metadata with invalid creation_time 2019-05-10 14:40:11 +02:00
libdm-deptree.c dm: ensure migration_threshold is big enough 2019-01-21 12:48:50 +01:00
libdm-file.c cov: mark warning as expected one 2018-11-03 16:10:32 +01:00
libdm-report.c cov: ensure vars are set 2018-10-15 17:49:44 +02:00
libdm-string.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
libdm-targets.c Add dm-writecache support 2018-11-06 14:18:41 -06:00
libdm-timestamp.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
Makefile makefiles: correcting login of makefile 2018-12-17 10:55:20 +01:00