Skip to content

Commit

Permalink
fix(stats, zvol): use dd_uncompressed_bytes instead of dd_used_bytes (#…
Browse files Browse the repository at this point in the history
…231)

This commit fixes the issue: openebs/openebs#2560

Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
  • Loading branch information
utkarshmani1997 authored and mynktl committed May 17, 2019
1 parent d69dbc9 commit 07f79e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libzrepl/mgmt_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,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;
Expand Down

0 comments on commit 07f79e1

Please sign in to comment.