diff options
author | mm <mm@FreeBSD.org> | 2013-03-01 21:58:51 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2013-03-01 21:58:51 +0000 |
commit | 2bed8f5691b7572d6f31bfc68e9f762a938af863 (patch) | |
tree | b39d1760bfbe46c903851916b746d14718065ffd /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c | |
parent | ffd2079a18a79d32aee02f64cfe1de0ccd450177 (diff) | |
download | FreeBSD-src-2bed8f5691b7572d6f31bfc68e9f762a938af863.zip FreeBSD-src-2bed8f5691b7572d6f31bfc68e9f762a938af863.tar.gz |
MFV r247316:
Merge new read-only zfs properties from vendor (illumos)
Illumos ZFS issues:
3588 provide zfs properties for logical (uncompressed) space used and
referenced
References:
https://www.illumos.org/issues/3588
MFC after: 2 weeks
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c index 4d954bd..79e5121 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c @@ -541,6 +541,8 @@ dsl_dir_stats(dsl_dir_t *dd, nvlist_t *nv) dd->dd_phys->dd_compressed_bytes == 0 ? 100 : (dd->dd_phys->dd_uncompressed_bytes * 100 / dd->dd_phys->dd_compressed_bytes)); + dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_LOGICALUSED, + dd->dd_phys->dd_uncompressed_bytes); if (dd->dd_phys->dd_flags & DD_FLAG_USED_BREAKDOWN) { dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USEDSNAP, dd->dd_phys->dd_used_breakdown[DD_USED_SNAP]); |