From: Zdenek Kabelac Date: Fri, 28 Aug 2020 17:48:40 +0000 (+0200) Subject: lvmcache: use uint32_t for seqno caching X-Git-Tag: v2_03_11~272 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=93c9055591d8311cb361909f719964cdfa79e209;p=lvm2.git lvmcache: use uint32_t for seqno caching --- diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c index b1d05fb07..147d0f1cc 100644 --- a/lib/cache/lvmcache.c +++ b/lib/cache/lvmcache.c @@ -42,9 +42,9 @@ struct lvmcache_info { bool mda1_bad; /* label scan found bad metadata in mda1 */ bool mda2_bad; /* label scan found bad metadata in mda2 */ bool summary_seqno_mismatch; /* two mdas on this dev has mismatching metadata */ - int summary_seqno; /* vg seqno found on this dev during scan */ - int mda1_seqno; - int mda2_seqno; + uint32_t summary_seqno; /* vg seqno found on this dev during scan */ + uint32_t mda1_seqno; + uint32_t mda2_seqno; }; /* One per VG */ @@ -63,7 +63,7 @@ struct lvmcache_vginfo { char *lock_type; uint32_t mda_checksum; size_t mda_size; - int seqno; + uint32_t seqno; bool scan_summary_mismatch; /* vgsummary from devs had mismatching seqno or checksum */ bool has_duplicate_local_vgname; /* this local vg and another local vg have same name */ bool has_duplicate_foreign_vgname; /* this foreign vg and another foreign vg have same name */