diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2018-07-03 20:13:28 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-07-27 15:24:23 -0400 |
commit | f84fd2c98480fa0e3c0b43996c4e235bdf4a9527 (patch) | |
tree | b85fb851b17e4f114ae1a6b5b606451f807fb8d3 /drivers/md/dm-integrity.c | |
parent | 724376a04d1a63d145fdfe7b24c0b13128a3ffd6 (diff) | |
download | linux-stable-f84fd2c98480fa0e3c0b43996c4e235bdf4a9527.tar.gz linux-stable-f84fd2c98480fa0e3c0b43996c4e235bdf4a9527.tar.bz2 linux-stable-f84fd2c98480fa0e3c0b43996c4e235bdf4a9527.zip |
dm integrity: report provided data sectors in the status
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-integrity.c')
-rw-r--r-- | drivers/md/dm-integrity.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 510665253820..09dadb771a62 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -2295,7 +2295,9 @@ static void dm_integrity_status(struct dm_target *ti, status_type_t type, 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: { |