* [PATCH 4/9] dm-integrity: report size in the status
@ 2018-06-06 15:33 Mikulas Patocka
0 siblings, 0 replies; 2+ messages in thread
From: Mikulas Patocka @ 2018-06-06 15:33 UTC (permalink / raw)
To: Mike Snitzer, Milan Broz; +Cc: dm-devel, Mikulas Patocka
[-- Attachment #1: dm-integrity-report-size.patch --]
[-- Type: text/plain, Size: 827 bytes --]
Report provided data sectors in the status.
Signed-off-by: Mikulas Patocka <mpatocka@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: {
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 4/9] dm-integrity: report size in the status
@ 2018-07-03 18:13 Mikulas Patocka
0 siblings, 0 replies; 2+ messages in thread
From: Mikulas Patocka @ 2018-07-03 18:13 UTC (permalink / raw)
To: Milan Broz, Mike Snitzer; +Cc: dm-devel, Mikulas Patocka
[-- Attachment #1: dm-integrity-report-size.patch --]
[-- Type: text/plain, Size: 827 bytes --]
Report provided data sectors in the status.
Signed-off-by: Mikulas Patocka <mpatocka@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-29 23:14:00.170000000 +0200
+++ linux-2.6/drivers/md/dm-integrity.c 2018-06-29 23:14:00.170000000 +0200
@@ -2298,7 +2298,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: {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-03 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-06 15:33 [PATCH 4/9] dm-integrity: report size in the status Mikulas Patocka
-- strict thread matches above, loose matches on Subject: below --
2018-07-03 18:13 Mikulas Patocka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.