1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/format_text
Zdenek Kabelac 5ea426e656 archiving: refactor code to allocate less memory
Do not store full path with each archived name reduces memory usage if
the directory has thousands of entries and just add 'dir' path when
needed.

Also emit info print message to a user if the total size of archived
files for a VG is more then 128MiB or 8192 files.

TODO: Consider wheather adding a new 'lvm.conf  archive{option}' to support
trimming these wild archive sizes can make situation better.
We already support retain_min && retain_days  - but if user is
generating too many and too large archives with minutes - maybe archiving
should be disabled by a user - as it's not producing anything largely usable
and just slows-down command ??
If we add 'retain_max & retain_max_size' the condition will go against
each other and we need to chose priorities.

mm
2021-10-06 15:42:53 +02:00
..
archive.c archiving: refactor code to allocate less memory 2021-10-06 15:42:53 +02:00
archiver.c gcc-fanalyzer: drop zeroing of pointers 2021-09-20 14:18:13 +02:00
archiver.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
export.c metadata: remember parsing size of VG metadata 2021-09-27 18:49:41 +02:00
flags.c Add metadata-based autoactivation property for VG and LV 2021-04-07 15:32:49 -05:00
format-text.c handle bad metadata text in vg_read path 2021-09-28 15:17:43 -05:00
format-text.h vgck: fix updatemetadata writing different descriptions 2019-10-11 12:57:32 -05:00
import_vsn1.c cov: clean up pvid and vgid usage 2021-08-16 11:31:15 -05:00
import-export.h metadata: add vg_from_config_tree 2019-11-27 11:13:47 -06:00
import.c handle bad metadata text in vg_read path 2021-09-28 15:17:43 -05:00
layout.h gcc: zero-sized array to fexlible array C99 2020-09-01 17:57:50 +02:00
text_export.h cleanup: easier print of historical lv 2021-03-10 01:11:52 +01:00
text_import.h doc: change fsf address 2016-01-21 12:11:37 +01:00
text_label.c logging: messages for found metadata 2021-08-20 14:51:09 -05:00