]> git.baikalelectronics.ru Git - kernel.git/commit
DM RAID: Add message/status support for changing sync action
authorJonathan Brassow <jbrassow@redhat.com>
Wed, 24 Apr 2013 01:42:43 +0000 (11:42 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 24 Apr 2013 01:42:43 +0000 (11:42 +1000)
commita66c930e36262f47db6981739d364b92b2316995
treede79ac9ee9ccc36816a346987024865e72760528
parent4743dbed97a550916a17647de338ee5648e152e2
DM RAID: Add message/status support for changing sync action

DM RAID:  Add message/status support for changing sync action

This patch adds a message interface to dm-raid to allow the user to more
finely control the sync actions being performed by the MD driver.  This
gives the user the ability to initiate "check" and "repair" (i.e. scrubbing).
Two additional fields have been appended to the status output to provide more
information about the type of sync action occurring and the results of those
actions, specifically: <sync_action> and <mismatch_cnt>.  These new fields
will always be populated.  This is essentially the device-mapper way of doing
what MD controls through the 'sync_action' sysfs file and shows through the
'mismatch_cnt' sysfs file.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Documentation/device-mapper/dm-raid.txt
drivers/md/dm-raid.c