mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
conf: add allocation/use_blkid_wiping
Add allocation/use_blkid_wiping setting to lvm.conf to select between LVM2 native code to detect signatures to wipe or blkid library code.
This commit is contained in:
parent
9bfc0be493
commit
ab2f858af7
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.105 -
|
Version 2.02.105 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Add allocation/use_blkid_wiping to lvm.conf to enable blkid wiping.
|
||||||
Add configure --enable-blkid_wiping to use libblkid to detect signatures.
|
Add configure --enable-blkid_wiping to use libblkid to detect signatures.
|
||||||
Add -W/--wipesignatures lvcreate option to support wiping on new LVs.
|
Add -W/--wipesignatures lvcreate option to support wiping on new LVs.
|
||||||
Add allocation/wipe_signatures_on_new_logical_volumes_when_zeroing to lvm.conf.
|
Add allocation/wipe_signatures_on_new_logical_volumes_when_zeroing to lvm.conf.
|
||||||
|
@ -272,6 +272,21 @@ allocation {
|
|||||||
# algorithm.
|
# algorithm.
|
||||||
maximise_cling = 1
|
maximise_cling = 1
|
||||||
|
|
||||||
|
# Whether to use blkid library instead of native LVM2 code to detect
|
||||||
|
# any existing signatures while creating new Physical Volumes and
|
||||||
|
# Logical Volumes. LVM2 needs to be compiled with blkid wiping support
|
||||||
|
# for this setting to take effect.
|
||||||
|
#
|
||||||
|
# LVM2 native detection code is currently able to recognize these signatures:
|
||||||
|
# - MD device signature
|
||||||
|
# - swap signature
|
||||||
|
# - LUKS signature
|
||||||
|
# To see the list of signatures recognized by blkid, check the output
|
||||||
|
# of 'blkid -k' command. The blkid can recognize more signatures than
|
||||||
|
# LVM2 native detection code, but due to this higher number of signatures
|
||||||
|
# to be recognized, it can take more time to complete the signature scan.
|
||||||
|
use_blkid_wiping = 1
|
||||||
|
|
||||||
# Whether do wipe any signatures found on newly created Logical Volumes
|
# Whether do wipe any signatures found on newly created Logical Volumes
|
||||||
# automatically in addition to zeroing of the first KB on the LV
|
# automatically in addition to zeroing of the first KB on the LV
|
||||||
# (-Z/--zero y option) when running the LVM command without specifying
|
# (-Z/--zero y option) when running the LVM command without specifying
|
||||||
|
@ -104,6 +104,7 @@ cfg(devices_issue_discards_CFG, "issue_discards", devices_CFG_SECTION, 0, CFG_TY
|
|||||||
|
|
||||||
cfg_array(allocation_cling_tag_list_CFG, "cling_tag_list", allocation_CFG_SECTION, 0, CFG_TYPE_STRING, NULL, vsn(2, 2, 77), NULL)
|
cfg_array(allocation_cling_tag_list_CFG, "cling_tag_list", allocation_CFG_SECTION, 0, CFG_TYPE_STRING, NULL, vsn(2, 2, 77), NULL)
|
||||||
cfg(allocation_maximise_cling_CFG, "maximise_cling", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_MAXIMISE_CLING, vsn(2, 2, 85), NULL)
|
cfg(allocation_maximise_cling_CFG, "maximise_cling", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_MAXIMISE_CLING, vsn(2, 2, 85), NULL)
|
||||||
|
cfg(allocation_use_blkid_wiping_CFG, "use_blkid_wiping", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, 1, vsn(2, 2, 105), NULL)
|
||||||
cfg(allocation_wipe_signatures_on_new_logical_volumes_when_zeroing_CFG, "wipe_signatures_on_new_logical_volumes_when_zeroing", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, 1, vsn(2, 2, 105), NULL)
|
cfg(allocation_wipe_signatures_on_new_logical_volumes_when_zeroing_CFG, "wipe_signatures_on_new_logical_volumes_when_zeroing", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, 1, vsn(2, 2, 105), NULL)
|
||||||
cfg(allocation_mirror_logs_require_separate_pvs_CFG, "mirror_logs_require_separate_pvs", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_MIRROR_LOGS_REQUIRE_SEPARATE_PVS, vsn(2, 2, 85), NULL)
|
cfg(allocation_mirror_logs_require_separate_pvs_CFG, "mirror_logs_require_separate_pvs", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_MIRROR_LOGS_REQUIRE_SEPARATE_PVS, vsn(2, 2, 85), NULL)
|
||||||
cfg(allocation_thin_pool_metadata_require_separate_pvs_CFG, "thin_pool_metadata_require_separate_pvs", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS, vsn(2, 2, 89), NULL)
|
cfg(allocation_thin_pool_metadata_require_separate_pvs_CFG, "thin_pool_metadata_require_separate_pvs", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS, vsn(2, 2, 89), NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user