Deleted Added
full compact
dsl_dataset.c (247187) dsl_dataset.c (247585)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 2330 unchanged lines hidden (view full) ---

2339 written);
2340 }
2341 }
2342 }
2343 ratio = ds->ds_phys->ds_compressed_bytes == 0 ? 100 :
2344 (ds->ds_phys->ds_uncompressed_bytes * 100 /
2345 ds->ds_phys->ds_compressed_bytes);
2346 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_REFRATIO, ratio);
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 2330 unchanged lines hidden (view full) ---

2339 written);
2340 }
2341 }
2342 }
2343 ratio = ds->ds_phys->ds_compressed_bytes == 0 ? 100 :
2344 (ds->ds_phys->ds_uncompressed_bytes * 100 /
2345 ds->ds_phys->ds_compressed_bytes);
2346 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_REFRATIO, ratio);
2347 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_LOGICALREFERENCED,
2348 ds->ds_phys->ds_uncompressed_bytes);
2347
2348 if (ds->ds_phys->ds_next_snap_obj) {
2349 /*
2350 * This is a snapshot; override the dd's space used with
2351 * our unique space and compression ratio.
2352 */
2353 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USED,
2354 ds->ds_phys->ds_unique_bytes);

--- 2007 unchanged lines hidden ---
2349
2350 if (ds->ds_phys->ds_next_snap_obj) {
2351 /*
2352 * This is a snapshot; override the dd's space used with
2353 * our unique space and compression ratio.
2354 */
2355 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USED,
2356 ds->ds_phys->ds_unique_bytes);

--- 2007 unchanged lines hidden ---