Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
*** 24,34 ****
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
#
--- 24,34 ----
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013, 2016 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
#
*** 50,61 ****
log_assert "system related filesytems can not be renamed or destroyed"
typeset rootpool=$(get_rootpool)
typeset rootfs=$(get_rootfs)
! log_mustnot $ZFS rename $rootfs $rootpool/newfs
! log_mustnot $ZFS rename -f $rootfs $rootpool/newfs
! log_mustnot $ZFS destroy $rootfs
! log_mustnot $ZFS destroy -f $rootfs
log_pass "system related filesystems can not be renamed or destroyed"
--- 50,61 ----
log_assert "system related filesytems can not be renamed or destroyed"
typeset rootpool=$(get_rootpool)
typeset rootfs=$(get_rootfs)
! log_mustnot zfs rename $rootfs $rootpool/newfs
! log_mustnot zfs rename -f $rootfs $rootpool/newfs
! log_mustnot zfs destroy $rootfs
! log_mustnot zfs destroy -f $rootfs
log_pass "system related filesystems can not be renamed or destroyed"