1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-02 06:42:58 +03:00
lvm2/lib
Peter Rajnoha 8a23683a59 config: remove unnecessary copy of config line's space prefix before printing
When we wanted to insert '#' before a config line (to comment it out),
we used dm_pool_strndup to temporarily copy the space prefix first so
we can assemble the final line with:

   "<space_prefix># <key>=<value>":

out of original:

  "<space_prefix><key>=<value>".

The space_prefix copy is not necessary, we can just use fprintf's
precision modifier "%.*s" to print the exact part if we alrady
know space_prefix length.
2022-08-17 10:47:43 +02:00
..
activate
cache
cache_segtype
commands report: report numeric values (not string synonyms) for NUM and BIN fields with json_std format 2022-08-16 13:42:50 +02:00
config config: remove unnecessary copy of config line's space prefix before printing 2022-08-17 10:47:43 +02:00
datastruct
device
display
error
filters
format_text
freeseg
integrity
label
locking
log
lvmpolld
metadata
mirror
misc
mm
notify
properties
raid
report report: report numeric values (not string synonyms) for NUM and BIN fields with json_std format 2022-08-16 13:42:50 +02:00
snapshot
striped
thin
unknown
uuid
vdo
writecache
zero
Makefile.in