/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/ |
H A D | zpool_create_001_neg.ksh | 37 # Verify that 'zpool create' fails as a non-root user. 40 # 1. Create an array of options. 55 set -A args "create" "create -f" "create -n" \ 56 "create $TESTPOOL" "create -f $TESTPOOL" "create -n $TESTPOOL" \ 57 "create -fn $TESTPOOL" "create -nf $TESTPOOL" \ 58 "create $TESTPOOL $ADD_DISK" "create -f $TESTPOOL $ADD_DISK" 60 set -A args "create" "create -f" "create -n" \ 61 "create $TESTPOOL" "create -f $TESTPOOL" "create -n $TESTPOOL" \ 62 "create -fn $TESTPOOL" "create -nf $TESTPOOL" \ 63 "create $TESTPOOL $ADD_DISK" "create -f $TESTPOOL $ADD_DISK" \ [all …]
|
H A D | setup.ksh | 46 # Create a default setup that includes a volume 54 # create a snapshot and a clone to test clone promote 57 # create a file in the filesystem that isn't in the above snapshot 61 # create a non-default property and a child we can use to test inherit 62 log_must zfs create $TESTPOOL/$TESTFS/$TESTFS2 66 # create an unmounted filesystem to test unmount 67 log_must zfs create $TESTPOOL/$TESTFS/$TESTFS2.unmounted 80 # create a filesystem that has particular properties to test set/get 81 log_must zfs create -o version=1 $TESTPOOL/$TESTFS/prop 94 # create a filesystem we don't mind renaming [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | create.cc | 40 class Create: public FuseTest { class 53 in.body.create.mode == mode && in expect_create() 54 in.body.create.umask == mask && in expect_create() 64 class Create_7_8: public Create { 68 Create::SetUp(); in SetUp() 78 in.body.create.mode == mode && in expect_create() 102 in.body.create.mode == mode && in expect_create() 116 TEST_F(Create, attr_cache) in TEST_F() argument 128 SET_OUT_HEADER_LEN(out, create); in TEST_F() 129 out.body.create.entry.attr.mode = mode; in TEST_F() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/ |
H A D | zfs_create_encrypted.ksh | 28 # ZFS should create datasets only if they have a valid combination of 64 # 1. Attempt to create a dataset using all combinations of encryption 79 log_assert "ZFS should create datasets only if they have a valid" \ 83 log_must zfs create $TESTPOOL/$TESTFS1 84 log_mustnot zfs create -o keyformat=passphrase $TESTPOOL/$TESTFS1/c1 85 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS1/c1 86 log_mustnot zfs create -o keyformat=passphrase -o keylocation=prompt \ 89 log_must zfs create -o encryption=off $TESTPOOL/$TESTFS1/c1 90 log_mustnot zfs create -o encryption=off -o keylocation=prompt \ 92 log_mustnot zfs create -o encryption=off -o keyformat=passphrase \ [all …]
|
/freebsd/tools/regression/zfs/zpool/create/ |
H A D | option-f_inuse.t | 11 expect_ok ${ZPOOL} create ${name0} ${disk0} 18 expect "${exp}" ${ZPOOL} create ${name1} ${disk0} 20 expect_ok ${ZPOOL} create -f ${name1} ${disk0} 24 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 31 expect "${exp}" ${ZPOOL} create ${name1} mirror ${disk0} ${disk1} 33 expect_ok ${ZPOOL} create -f ${name1} mirror ${disk0} ${disk1} 37 expect_ok ${ZPOOL} create ${name0} raidz1 ${disk0} ${disk1} ${disk2} 44 expect "${exp}" ${ZPOOL} create ${name1} raidz1 ${disk0} ${disk1} ${disk2} 46 expect_ok ${ZPOOL} create -f ${name1} raidz1 ${disk0} ${disk1} ${disk2} 50 expect_ok ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} [all …]
|
H A D | option-o.t | 11 expect_fl ${ZPOOL} create -o size=96M ${name0} ${disk0} 14 expect_fl ${ZPOOL} create -o used=0 ${name0} ${disk0} 17 expect_fl ${ZPOOL} create -o available=96M ${name0} ${disk0} 20 expect_fl ${ZPOOL} create -o capacity=0% ${name0} ${disk0} 25 expect_ok ${ZPOOL} create -o altroot=/${name1} ${name0} ${disk0} 41 expect_fl ${ZPOOL} create -o health=ONLINE ${name0} ${disk0} 44 expect_fl ${ZPOOL} create -o guid=13949667482126165574 ${name0} ${disk0} 47 expect_ok ${ZPOOL} create -o version=9 ${name0} ${disk0} 55 expect_fl ${ZPOOL} create -o bootfs=${name0}/root ${name0} ${disk0} 58 expect_ok ${ZPOOL} create -o delegation=off ${name0} ${disk0} [all …]
|
/freebsd/usr.sbin/ctladm/tests/ |
H A D | port.sh | 57 if [ -e port-create.txt ]; then 60 PORTNUM=`awk '/port:/ {print $2}' port-create.txt` 64 TARGET=`awk '/target:/ {print $2}' port-create.txt` 74 atf_set "descr" "ctladm can create a new ioctl port" 81 atf_check -o save:port-create.txt ctladm port -c -d "ioctl" 82 atf_check egrep -q "Port created successfully" port-create.txt 83 atf_check egrep -q "frontend: *ioctl" port-create.txt 84 atf_check egrep -q "port: *[0-9]+" port-create.txt 85 portnum=`awk '/port:/ {print $2}' port-create.txt` 104 atf_check -o save:port-create [all...] |
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_encrypted.ksh | 26 # 'zpool create' should create an encrypted dataset only if it has a valid 53 # 1. Attempt to create a dataset using all combinations of encryption 65 log_assert "'zpool create' should create an encrypted dataset only if it" \ 68 log_mustnot zpool create -O keylocation=prompt $TESTPOOL $DISKS 69 log_mustnot zpool create -O keyformat=passphrase $TESTPOOL $DISKS 70 log_mustnot zpool create -O keyformat=passphrase -O keylocation=prompt \ 73 log_must zpool create -O encryption=off $TESTPOOL $DISKS 76 log_mustnot zpool create -O encryption=off -O keylocation=prompt \ 78 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \ 80 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \ [all …]
|
H A D | zpool_create_009_neg.ksh | 37 # Create a pool with same devices twice or create two pools with same 38 # devices, 'zpool create' should failed. 41 # 1. Loop to create the following three kinds of pools. 45 # 2. Create two pools but using the same disks, expect failed. 46 # 3. Create one pool but using the same disks twice, expect failed. 60 log_assert "Create a pool with same devices twice or create two pools with " \ 61 "same devices, 'zpool create' should fail." 73 # Create two pools but using the same disks. 75 log_mustnot zpool create -f $TESTPOOL1 $opt $disks 78 # Create two pools and part of the devices were overlapped [all …]
|
H A D | zpool_create_002_pos.ksh | 37 # 'zpool create -f <pool> <vspec> ...' can successfully create a 42 # 2. Use -f to override the devices to create new pools 63 log_assert "'zpool create -f <pool> <vspec> ...' can successfully create" \ 73 log_note "'zpool create' without '-f' will fail " \ 75 log_mustnot zpool create $TESTPOOL1 $DISK0 81 log_note "'zpool create' without '-f' will fail " \ 84 # fs must be mounted for create to fail on FreeBSD 88 log_mustnot zpool create $TESTPOOL $DISK1 90 # fs must not be mounted to create pool even with -f 99 log_note "'zpool create' mirror without '-f' will fail " \ [all …]
|
H A D | zpool_create_draid_003_pos.ksh | 48 log_assert "'zpool create <pool> draid:#d:#c:#s <vdevs>'" 68 log_must zpool create $TESTPOOL $draid $draid_vdevs 83 log_mustnot zpool create $TESTPOOL draid:d8 $draid_vdevs 84 log_mustnot zpool create $TESTPOOL draid:s3 $draid_vdevs 85 log_mustnot zpool create $TESTPOOL draid:c32 $draid_vdevs 86 log_mustnot zpool create $TESTPOOL draid:10x $draid_vdevs 87 log_mustnot zpool create $TESTPOOL draid:x10 $draid_vdevs 90 log_must zpool create $TESTPOOL draid2:30d $draid_vdevs 92 log_mustnot zpool create $TESTPOOL draid2:31d $draid_vdevs 95 log_mustnot zpool create $TESTPOOL draid2:0d $draid_vdevs [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/ |
H A D | zvol_misc_hierarchy.ksh | 29 # 1. Create a filesystem and a ZVOL 33 # 5. Verify 'zfs create' cannot create datasets under a ZVOL 54 # 1. Create filesystems and ZVOLs 57 log_must zpool create -O mountpoint=none "$poolname" "$vdevfile" 58 log_must zfs create "$poolname/sendfs" 59 log_must zfs create -V 1M -s "$poolname/sendvol" 69 log_must zfs create "$poolname/fs" 70 log_must zfs create "$poolname/fs/subfs" 76 log_must zfs create -V 1M -s "$poolname/volume" 80 # 5. Verify 'zfs create' cannot create datasets under a ZVOL [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_user/misc/ |
H A D | setup.ksh | 40 # Create a default setup that includes a volume 48 # create a snapshot and a clone to test clone promote 51 # create a file in the filesystem that isn't in the above snapshot 55 # create a non-default property and a child we can use to test inherit 56 log_must $ZFS create $TESTPOOL/$TESTFS/$TESTFS2 60 # create an unmounted filesystem to test unmount 61 log_must $ZFS create $TESTPOOL/$TESTFS/$TESTFS2.unmounted 74 # create a filesystem that has particular properties to test set/get 75 log_must $ZFS create -o version=1 $TESTPOOL/$TESTFS/prop 89 # create a filesystem we don't mind renaming [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/limits/ |
H A D | filesystem_limit.ksh | 26 # 1. Verify 'zfs create' and 'zfs clone' cannot exceed the filesystem_limit 50 log_must zfs create -o mountpoint=none "$DATASET_TEST" 51 log_must zfs create -o mountpoint=none "$DATASET_UTIL" 53 log_must zfs create "$DATASET_TEST" 54 log_must zfs create "$DATASET_UTIL" 57 # Ensure our non-root user has the permission to create the 63 log_must zfs allow -d -l $STAFF1 'create,mount,rename,clone,receive' \ 65 log_must zfs allow -d -l $STAFF1 'create,mount,rename,clone,receive' \ 86 # 1. Verify 'zfs create' and 'zfs clone' cannot exceed the filesystem_limit 89 # 'user_run zfs create -o canmount=off' successfully [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool/ |
H A D | zpool_001_neg.ksh | 40 # 1. Create an array containing each zpool sub-command name. 48 set -A args "" "create" "add" "destroy" "import fakepool" \ 49 "export fakepool" "create fakepool" "add fakepool" \ 50 "create mirror" "create raidz" "create raidz1" \ 51 "create mirror fakepool" "create raidz fakepool" \ 52 "create raidz1 fakepool" "create raidz2 fakepool" \ 53 "create fakepool mirror" "create fakepool raidz" \ 54 "create fakepool raidz1" "create fakepool raidz2" \
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
H A D | zpool_create_009_neg.ksh | 36 # Create a pool with same devices twice or create two pools with same 37 # devices, 'zpool create' should failed. 40 # 1. Loop to create the following three kinds of pools. 44 # 2. Create two pools but using the same disks, expect failed. 45 # 3. Create one pool but using the same disks twice, expect failed. 69 log_assert "Create a pool with same devices twice or create two pools with " \ 70 "same devices, 'zpool create' should fail." 83 # Create two pools but using the same disks. 85 log_mustnot $ZPOOL create -f $TESTPOOL1 $opt $disk 88 # Create two pools and part of the devices were overlapped [all …]
|
/freebsd/tests/sys/net/ |
H A D | if_vlan.sh | 20 vlan0=$(jexec alcatraz ifconfig vlan create vlandev ${epair_vlan}a \ 25 vlan1=$(jexec singsing ifconfig vlan create) 71 vlan5a=$(jexec jqinq0 ifconfig vlan create \ 73 vlan42a=$(jexec jqinq0 ifconfig vlan create \ 79 vlan5b=$(jexec jqinq1 ifconfig vlan create \ 81 vlan42b=$(jexec jqinq1 ifconfig vlan create \ 113 vlan5a=$(jexec jqinq2 ifconfig vlan create \ 115 vlan6a=$(jexec jqinq2 ifconfig vlan create \ 117 vlan42a=$(jexec jqinq2 ifconfig vlan create \ 124 vlan5b=$(jexec jqinq3 ifconfig vlan create \ [all …]
|
/freebsd/contrib/pjdfstest/tests/granular/ |
H A D | 00.t | 25 # Can create files? 26 expect 0 create ${n0} 0644 28 # Can create symlinks? 33 # Can create directories? 37 # Check whether user 65534 is permitted to create and remove 41 # Can create files? 42 expect 0 -u 65534 -g 65534 create ${n0} 0644 44 # Can create symlinks? 49 # Can create directories? 56 expect 0 create ../${n3}/${n1} 0644 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/ |
H A D | zdb_args_neg.ksh | 40 # 1. Create an array containing bad zdb parameters. 47 set -A args "create" "add" "destroy" "import fakepool" \ 48 "export fakepool" "create fakepool" "add fakepool" \ 49 "create mirror" "create raidz" \ 50 "create mirror fakepool" "create raidz fakepool" \ 51 "create raidz1 fakepool" "create raidz2 fakepool" \ 52 "create fakepool mirror" "create fakepool raidz" \ 53 "create fakepool raidz1" "create fakepool raidz2" \
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool/ |
H A D | zpool_001_neg.ksh | 39 # 1. Create an array containg each zpool sub-command name. 56 set -A args "" "create" "add" "destroy" "import fakepool" \ 57 "export fakepool" "create fakepool" "add fakepool" \ 58 "create mirror" "create raidz" "create raidz1" \ 59 "create mirror fakepool" "create raidz fakepool" \ 60 "create raidz1 fakepool" "create raidz2 fakepool" \ 61 "create fakepool mirror" "create fakepool raidz" \ 62 "create fakepool raidz1" "create fakepool raidz2" \
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | test_cms.in | 54 echo "create signed data (ec)" 55 ${hxtool} cms-create-sd \ 68 echo "create signed data" 69 ${hxtool} cms-create-sd \ 81 echo "create signed data (no signer)" 82 ${hxtool} cms-create-sd \ 104 echo "create signed data (id-by-name)" 105 ${hxtool} cms-create-sd \ 125 echo "create signed data (password)" 126 ${hxtool} cms-create-sd \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bootfs/ |
H A D | bootfs_006_pos.ksh | 40 # 1. create pools of each vdev type (raid, raidz, raidz2, mirror + hotspares) 54 log_must zfs create $POOL/$TESTFS 69 log_must zfs create $POOL/$TESTFS 99 log_must zpool create $TESTPOOL $VDEV1 103 log_must zpool create $TESTPOOL $VDEV1 spare $VDEV2 107 log_must zpool create $TESTPOOL mirror $VDEV1 $VDEV2 111 log_must zpool create $TESTPOOL mirror $VDEV1 $VDEV2 spare $VDEV3 116 log_must zpool create $TESTPOOL $VDEV1 $VDEV2 120 log_must zpool create $TESTPOOL $VDEV1 $VDEV2 spare $VDEV3 126 log_must zpool create $TESTPOOL $VDEV1 $VDEV2 [all …]
|
/freebsd/tests/sys/geom/class/multipath/ |
H A D | misc.sh | 43 atf_check -s exit:0 gmultipath create "$name" ${md0} ${md1} 58 atf_set "descr" "Create an Active/Active multipath device" 69 atf_check -s exit:0 gmultipath create -A "$name" ${md0} ${md1} 80 atf_set "descr" "Create an Active/Read multipath device" 91 atf_check -s exit:0 gmultipath create -R "$name" ${md0} ${md1} 116 atf_check gnop create -o $offset /dev/${md0} 117 atf_check gnop create -o $offset /dev/${md1} 119 # gmultipath is too smart to let us create a gmultipath device by label 120 # when the two providers aren't actually related. So we create a 133 atf_check gnop create -o $offset /dev/${md0} [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zdb/ |
H A D | zdb_001_neg.ksh | 39 # 1. Create an array containg bad zdb parameters. 55 set -A args "create" "add" "destroy" "import fakepool" \ 56 "export fakepool" "create fakepool" "add fakepool" \ 57 "create mirror" "create raidz" \ 58 "create mirror fakepool" "create raidz fakepool" \ 59 "create raidz1 fakepool" "create raidz2 fakepool" \ 60 "create fakepool mirror" "create fakepool raidz" \ 61 "create fakepool raidz1" "create fakepool raidz2" \
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/privilege/ |
H A D | privilege_001_pos.ksh | 40 # (create) 41 # 1. As a normal user, try to create a pool - which should fail. 42 # 2. Assign "ZFS Storage Management" profile, try to create pool again, 46 # 3. Attempt to create a ZFS filesystem, which should fail. 47 # 4. Add the "ZFS File System Management" profile, attempt to create a FS 69 log_mustnot user_run $ZFS_USER "zpool create $TESTPOOL $DISKS" 70 log_mustnot user_run $ZFS_USER "pfexec zpool create $TESTPOOL $DISKS" 74 log_must user_run $ZFS_USER "pfexec zpool create -f $TESTPOOL $DISKS" 76 # ensure the user can't create a filesystem with this profile 77 log_mustnot user_run $ZFS_USER "zfs create $TESTPOOL/fs" [all …]
|