master - libdm: use 64bit type for raid index
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7ec8e691c40e0b42a328366e3201cf4264108434 Commit: 7ec8e691c40e0b42a328366e3201cf4264108434 Parent: f0f4248333a6dfa017d84dfd7bb298a3321a6ec2 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Feb 14 21:13:41 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Feb 15 11:36:37 2014 +0100
libdm: use 64bit type for raid index
Used properly signed 64bit constant for shifting.
--- WHATS_NEW_DM | 1 + libdm/libdm-deptree.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.85 - =================================== + Use correctly signed 64b constant when working with raid volumes. Exit dmeventd with pidfile cleanup instead of raising SIGKILL on DIE request. Add new DM_EVENT_GET_PARAMETERS request to dmeventd protocol. Do not use systemd's reload for dmeventd restart, use dmeventd -R instead.
libdm/libdm-deptree.c +2 -2
@@ -2243,11 +2243,11 @@ static int _raid_emit_segment_line(struct dm_task *dmt, uint32_t major,EMIT_PARAMS (pos," region_size %u" , seg->region_size);for (i =0 ; i < (seg->area_count /2 ); i++) -if (seg->rebuilds & (1 << i)) +if (seg->rebuilds & (1ULL << i))EMIT_PARAMS (pos," rebuild %u" , i);for (i =0 ; i < (seg->area_count /2 ); i++) -if (seg->writemostly & (1 << i)) +if (seg->writemostly & (1ULL << i))EMIT_PARAMS (pos," write_mostly %u" , i);if (seg->writebehind)