Skip to contentSkip to conversation

master - vdo: fix archived metadata comment

PATCH Zdenek Kabelac 1 participant 1 message Jan 21, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f87dd7b12745815c391257afc0b9631c708c2b6c
Commit:        f87dd7b12745815c391257afc0b9631c708c2b6c
Parent:        0d142f65141d591430ced6a7a7fcccb4d2198d28
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Jan 14 16:21:02 2019 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jan 21 12:37:52 2019 +0100

vdo: fix archived metadata comment

lvm uses 'minimum_io_size' name to exactly match VDO naming here, however in all common cases _size is using 'sector/512b' unit. But in this case the value is in bytes and can have only 2 values:
either 512 or 4096.

It's probably not worth to rename it internaly, so we can just drop comment - instead of using 1 or 8.

Thought let's think about it....

---
 WHATS_NEW     |    1 +
 lib/vdo/vdo.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
index 1187fb4..5bb5797 100644
@@ -1,5 +1,6 @@
 Version 2.03.02 - 
 ===================================
+  Drop misleadning comment for metadata minimum_io_size for VDO segment.
   Add device hints to reduce scanning.
   Introduce LVM_SUPPRESS_SYSLOG to suppress syslog usage by generator.
   Fix generator quering lvmconfig unpresent config option.
lib/vdo/vdo.c +1 -1
index c34eb93..ed051fc 100644
@@ -308,7 +308,7 @@ static int _vdo_pool_text_export(const struct lv_segment *seg, struct formatter
 	if (vtp->use_metadata_hints)
 		outf(f, "use_metadata_hints = 1");
 
-	outsize(f, vtp->minimum_io_size, "minimum_io_size = %u", vtp->minimum_io_size);
+	outf(f, "minimum_io_size = %u", vtp->minimum_io_size);
 
 	outsize(f, vtp->block_map_cache_size_mb * UINT64_C(2 * 1024),
 		"block_map_cache_size_mb = %u", vtp->block_map_cache_size_mb);