master - raid: use unsigned 64b constant for shift
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8a21dcebac02884615b80fbe9d276991a50dc66b Commit: 8a21dcebac02884615b80fbe9d276991a50dc66b Parent: 1a5062c9a7136f93a00b998ff0de1a32bb347b5f Author: Zdenek Kabelac <[email protected]> AuthorDate: Sun Feb 9 21:34:55 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Feb 11 18:47:15 2014 +0100
raid: use unsigned 64b constant for shift
--- WHATS_NEW | 1 + lib/raid/raid.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.106 - ==================================== + Use correctly signed 64b constant when selecting raid volumes. Add systemd native service for clvmd, cmirrord and clustered LV activation. Remove ExecReload from lvmetad systemd unit: lvmetad -R undefined. (2.02.98) Do not fork lvmetad if running under systemd.
lib/raid/raid.c +2 -2
@@ -221,11 +221,11 @@ static int _raid_add_target_line(struct dev_manager *dm __attribute__((unused)),for (s =0 ; s < seg->area_count; s++)if (seg_lv (seg, s)->status &LV_REBUILD ) - rebuilds |=1 << s; + rebuilds |=1ULL << s;for (s =0 ; s < seg->area_count; s++)if (seg_lv (seg, s)->status &LV_WRITEMOSTLY ) - writemostly |=1 << s; + writemostly |=1ULL << s;if (mirror_in_sync ()) flags =DM_NOSYNC ;