Skip to content
Commit 13ae864b authored by Rémi Rérolle's avatar Rémi Rérolle Committed by NeilBrown
Browse files

md: fix sync_completed reporting for very large drives (>2TB)



The values exported in the sync_completed file are unsigned long, which
overflows with very large drives, resulting in wrong values reported.

Since sync_completed uses sectors as unit, we'll start getting wrong
values with components larger than 2TB.

This patch simply replaces the use of unsigned long by unsigned long long.

Signed-off-by: default avatarRémi Rérolle <rrerolle@lacie.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 23ddff37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment