From: NeilBrown Date: Thu, 13 Jan 2011 22:14:34 +0000 (+1100) Subject: md: Don't let implementation detail of curr_resync leak out through sysfs. X-Git-Tag: v2.6.38-rc1~222^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75d3da43cb74d2e5fb87816dbfecb839cd97c7f4;p=pandora-kernel.git md: Don't let implementation detail of curr_resync leak out through sysfs. mddev->curr_resync has artificial values of '1' and '2' which are used by the code which ensures only one resync is happening at a time on any given device. These values are internal and should never be exposed to user-space (except when translated appropriately as in the 'pending' status in /proc/mdstat). Unfortunately they are as ->curr_resync is assigned to ->curr_resync_completed and that value is directly visible through sysfs. So change the assignments to ->curr_resync_completed to get the same valued from elsewhere in a form that doesn't have the magic '1' or '2' values. Signed-off-by: NeilBrown --- Reading git-diff-tree failed