]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - zfs/tests/zfs-tests/tests/functional/features/large_dnode/large_dnode_004_neg.ksh
5 # The contents of this file are subject to the terms of the
6 # Common Development and Distribution License (the "License").
7 # You may not use this file except in compliance with the License.
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
23 .
$STF_SUITE/include
/libtest.shlib
25 verify_runnable
"both"
27 TEST_FS
=$TESTPOOL/large_dnode
28 TEST_SNAP
=$TESTPOOL/large_dnode@ldnsnap
29 TEST_STREAM
=$TESTDIR/ldnsnap
33 if datasetexists
$TEST_FS ; then
34 log_must
$ZFS destroy
-r $TEST_FS
37 if datasetexists
$LGCYPOOL ; then
38 log_must
$ZPOOL destroy
-f $LGCYPOOL
45 log_assert
"zfs send stream with large dnodes not accepted by legacy pool"
47 log_must
$ZFS create
-o dnodesize
=1k
$TEST_FS
48 log_must
touch /$TEST_FS/foo
49 log_must
$ZFS umount
$TEST_FS
50 log_must
$ZFS snap
$TEST_SNAP
51 log_must
eval "$ZFS send $TEST_SNAP > $TEST_STREAM"
54 LGCYFS
=$LGCYPOOL/legacy
55 log_must
$MKFILE 64M
$TESTDIR/$LGCYPOOL
56 log_must
$ZPOOL create
-d $LGCYPOOL $TESTDIR/$LGCYPOOL
57 log_mustnot
eval "$ZFS recv $LGCYFS < $TEST_STREAM"