]> Git Repo - linux.git/commit - drivers/md/md.c
md: fix sync_completed reporting for very large drives (>2TB)
authorRémi Rérolle <[email protected]>
Thu, 13 Jan 2011 22:14:34 +0000 (09:14 +1100)
committerNeilBrown <[email protected]>
Thu, 13 Jan 2011 22:14:34 +0000 (09:14 +1100)
commit13ae864bc86ff65547ffe7e966b6433a0d0edb8a
tree6e5ca3a6736b75fa0db8415c1e3a2506af6ab9cc
parent23ddff3792f61193695114c68d6ebd57e974c4f8
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: Rémi Rérolle <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
drivers/md/md.c
This page took 0.053982 seconds and 4 git commands to generate.