From ccd1c6c06e9de336526ebd4cb3bf1c97955cdad1 Mon Sep 17 00:00:00 2001 From: Mayank <33252549+mynktl@users.noreply.github.com> Date: Tue, 4 Jun 2019 19:06:17 +0530 Subject: [PATCH] fix(stats, zvol): use dd_uncompressed_bytes instead of dd_used_bytes (#230) (#11) (#14) Signed-off-by: Utkarsh Mani Tripathi --- src/mgmt_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mgmt_conn.c b/src/mgmt_conn.c index 9917293..e7d7100 100644 --- a/src/mgmt_conn.c +++ b/src/mgmt_conn.c @@ -613,7 +613,7 @@ uzfs_zvol_stats(uzfs_mgmt_conn_t *conn, zvol_io_hdr_t *hdrp, zvol_info_t *zinfo) strlcpy(stat.label, "used", sizeof (stat.label)); stat.value = dsl_dir_phys( - zv_objset->os_dsl_dataset->ds_dir)->dd_used_bytes; + zv_objset->os_dsl_dataset->ds_dir)->dd_uncompressed_bytes; bzero(&hdr, sizeof (hdr)); hdr.version = REPLICA_VERSION;