Message ID | 6de62457-9674-1b90-72e0-9ea77b814bc9@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/blockdev.c b/blockdev.c index 34a20d3b9a..7b54d43896 100644 --- a/blockdev.c +++ b/blockdev.c @@ -564,6 +564,8 @@ static BlockBackend *blockdev_init(const char *file, QDict *bs_opts, blk_rs->read_only = read_only; blk_rs->detect_zeroes = detect_zeroes; + block_acct_init(blk_get_stats(blk), account_invalid, account_failed); + QDECREF(bs_opts); } else { if (file && !*file) {