diff options
author | Akash Ayare <aayare@delphix.com> | 2016-06-02 21:00:23 -0700 |
---|---|---|
committer | Matthew Ahrens <mahrens@delphix.com> | 2016-06-03 08:12:05 -0700 |
commit | 48cb8b9720f175ff5ed31ebd96a9f3d6922bdde9 (patch) | |
tree | 13ffca601f46391a496c591ec95e3b0caa0b114a | |
parent | a2f72b65ebc430aaf277ad797e554bb4deba9b95 (diff) | |
download | illumos-joyent-48cb8b9720f175ff5ed31ebd96a9f3d6922bdde9.tar.gz |
7027 zfs_written_property_001_pos makes unreasonable assumptions about metadata space usage
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: Gordon Ross <gordon.ross@nexenta.com>
-rw-r--r-- | usr/src/test/zfs-tests/tests/functional/cli_root/zfs_property/zfs_written_property_001_pos.ksh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_property/zfs_written_property_001_pos.ksh b/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_property/zfs_written_property_001_pos.ksh index b5eae9c51c..fc58735972 100644 --- a/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_property/zfs_written_property_001_pos.ksh +++ b/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_property/zfs_written_property_001_pos.ksh @@ -11,7 +11,7 @@ # # -# Copyright (c) 2012 by Delphix. All rights reserved. +# Copyright (c) 2012, 2015 by Delphix. All rights reserved. # # @@ -63,11 +63,8 @@ typeset -l total=0 typeset -l snap1_size=0 typeset -l snap2_size=0 typeset -l snap3_size=0 -typeset -l metadata=0 typeset -l mb_block=0 ((mb_block = 1024 * 1024)) -# approximate metadata on dataset when empty is 32KB -((metadata = 32 * 1024)) log_note "verify written property statistics for dataset" log_must $ZFS create -p $TESTPOOL/$TESTFS1/$TESTFS2/$TESTFS3 @@ -89,7 +86,10 @@ blocks=0 for i in 1 2 3; do written=$(get_prop written $TESTPOOL/$TESTFS1@snap$i) if [[ $blocks -eq 0 ]]; then - expected_written=$metadata + # Written value for the frist non-clone snapshot is + # expected to be equal to the referenced value. + expected_written=$( \ + get_prop referenced $TESTPOOL/$TESTFS1@snap$i) else ((expected_written = blocks * mb_block)) fi |