]> git.baikalelectronics.ru Git - kernel.git/commit
MD: Remember the last sync operation that was performed
authorJonathan Brassow <jbrassow@redhat.com>
Tue, 25 Jun 2013 06:23:59 +0000 (01:23 -0500)
committerNeilBrown <neilb@suse.de>
Wed, 26 Jun 2013 02:38:24 +0000 (12:38 +1000)
commite2a227700d62ad07ab0fae2f52d7df1156a4a4e1
treee14b0de074da6e062275795b6530e5661d7c5acf
parent15e40b36931a20f443cd7ce9e74377f23675b3e7
MD: Remember the last sync operation that was performed

MD:  Remember the last sync operation that was performed

This patch adds a field to the mddev structure to track the last
sync operation that was performed.  This is especially useful when
it comes to what is recorded in mismatch_cnt in sysfs.  If the
last operation was "data-check", then it reports the number of
descrepancies found by the user-initiated check.  If it was a
"repair" operation, then it is reporting the number of
descrepancies repaired.  etc.

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
drivers/md/md.c
drivers/md/md.h