dsl_dir.c (240415) | dsl_dir.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 --- 527 unchanged lines hidden (view full) --- 536 dd->dd_phys->dd_used_bytes); 537 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_QUOTA, dd->dd_phys->dd_quota); 538 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_RESERVATION, 539 dd->dd_phys->dd_reserved); 540 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_COMPRESSRATIO, 541 dd->dd_phys->dd_compressed_bytes == 0 ? 100 : 542 (dd->dd_phys->dd_uncompressed_bytes * 100 / 543 dd->dd_phys->dd_compressed_bytes)); | 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 --- 527 unchanged lines hidden (view full) --- 536 dd->dd_phys->dd_used_bytes); 537 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_QUOTA, dd->dd_phys->dd_quota); 538 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_RESERVATION, 539 dd->dd_phys->dd_reserved); 540 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_COMPRESSRATIO, 541 dd->dd_phys->dd_compressed_bytes == 0 ? 100 : 542 (dd->dd_phys->dd_uncompressed_bytes * 100 / 543 dd->dd_phys->dd_compressed_bytes)); |
544 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_LOGICALUSED, 545 dd->dd_phys->dd_uncompressed_bytes); |
|
544 if (dd->dd_phys->dd_flags & DD_FLAG_USED_BREAKDOWN) { 545 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USEDSNAP, 546 dd->dd_phys->dd_used_breakdown[DD_USED_SNAP]); 547 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USEDDS, 548 dd->dd_phys->dd_used_breakdown[DD_USED_HEAD]); 549 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USEDREFRESERV, 550 dd->dd_phys->dd_used_breakdown[DD_USED_REFRSRV]); 551 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USEDCHILD, --- 874 unchanged lines hidden --- | 546 if (dd->dd_phys->dd_flags & DD_FLAG_USED_BREAKDOWN) { 547 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USEDSNAP, 548 dd->dd_phys->dd_used_breakdown[DD_USED_SNAP]); 549 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USEDDS, 550 dd->dd_phys->dd_used_breakdown[DD_USED_HEAD]); 551 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USEDREFRESERV, 552 dd->dd_phys->dd_used_breakdown[DD_USED_REFRSRV]); 553 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_USEDCHILD, --- 874 unchanged lines hidden --- |