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_dataset.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_dataset.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c index e8bf701..b294ff02 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c @@ -2344,6 +2344,8 @@ dsl_dataset_stats(dsl_dataset_t *ds, nvlist_t *nv) (ds->ds_phys->ds_uncompressed_bytes * 100 / ds->ds_phys->ds_compressed_bytes); dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_REFRATIO, ratio); + dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_LOGICALREFERENCED, + ds->ds_phys->ds_uncompressed_bytes); if (ds->ds_phys->ds_next_snap_obj) { /* |