diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-01-14 16:21:02 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-01-21 12:37:52 +0100 |
commit | f87dd7b12745815c391257afc0b9631c708c2b6c (patch) | |
tree | 35c0c2585a90a381d8838ea403a82ca4bb9f1f4d | |
parent | 0d142f65141d591430ced6a7a7fcccb4d2198d28 (diff) | |
download | lvm2-f87dd7b12745815c391257afc0b9631c708c2b6c.tar.gz |
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....
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | lib/vdo/vdo.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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. diff --git a/lib/vdo/vdo.c b/lib/vdo/vdo.c index c34eb9307..ed051fc97 100644 --- a/lib/vdo/vdo.c +++ b/lib/vdo/vdo.c @@ -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); |