Report provided data sectors in the status.

Signed-off-by: Mikulas Patocka <mpato...@redhat.com>

---
 drivers/md/dm-integrity.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: linux-2.6/drivers/md/dm-integrity.c
===================================================================
--- linux-2.6.orig/drivers/md/dm-integrity.c    2018-06-06 17:08:14.000000000 
+0200
+++ linux-2.6/drivers/md/dm-integrity.c 2018-06-06 17:08:14.000000000 +0200
@@ -2294,7 +2294,9 @@ static void dm_integrity_status(struct d
 
        switch (type) {
        case STATUSTYPE_INFO:
-               DMEMIT("%llu", (unsigned long 
long)atomic64_read(&ic->number_of_mismatches));
+               DMEMIT("%llu %llu",
+                       (unsigned long 
long)atomic64_read(&ic->number_of_mismatches),
+                       (unsigned long long)ic->provided_data_sectors);
                break;
 
        case STATUSTYPE_TABLE: {

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to