| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/ |
| H A D | zpool_create_001_neg.ksh | 38 # Verify that 'zpool create' fails as a non-root user. 41 # 1. Create an array of options. 56 set -A args "create" "create -f" "create -n" \ 57 "create $TESTPOOL" "create -f $TESTPOOL" "create -n $TESTPOOL" \ 58 "create -fn $TESTPOOL" "create -nf $TESTPOOL" \ 59 "create $TESTPOOL $ADD_DISK" "create -f $TESTPOOL $ADD_DISK" 61 set -A args "create" "create -f" "create -n" \ 62 "create $TESTPOOL" "create -f $TESTPOOL" "create -n $TESTPOOL" \ 63 "create -fn $TESTPOOL" "create -nf $TESTPOOL" \ 64 "create $TESTPOOL $ADD_DISK" "create -f $TESTPOOL $ADD_DISK" \ [all …]
|
| H A D | setup.ksh | 47 # Create a default setup that includes a volume 55 # create a snapshot and a clone to test clone promote 58 # create a file in the filesystem that isn't in the above snapshot 62 # create a non-default property and a child we can use to test inherit 63 log_must zfs create $TESTPOOL/$TESTFS/$TESTFS2 67 # create an unmounted filesystem to test unmount 68 log_must zfs create $TESTPOOL/$TESTFS/$TESTFS2.unmounted 81 # create a filesystem that has particular properties to test set/get 82 log_must zfs create -o version=1 $TESTPOOL/$TESTFS/prop 95 # create a filesystem we don't mind renaming [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zoned_uid/ |
| H A D | zoned_uid_019_neg.ksh | 36 # 1. Create two sibling delegation roots with different zoned_uids 37 # 2. Create a child under each from global zone 38 # 3. From UID A's namespace: verify can create under deleg_root_a 39 # 4. From UID A's namespace: attempt create under deleg_root_b (FAIL) 42 # 7. From UID B's namespace: verify can create under deleg_root_b 43 # 8. From UID B's namespace: attempt create under deleg_root_a (FAIL) 58 # Step 1: Create two sibling delegation roots 59 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root_a" 62 create,mount 64 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root_b" [all …]
|
| H A D | zoned_uid_023_pos.ksh | 32 # Additive least privilege: non-destructive operations (create, snapshot, 37 # 1. Create delegation root with zoned_uid 38 # 2. Grant create,snapshot,mount via zfs allow 39 # 3. With CAP_FOWNER: create succeeds (L1 yes + L2 yes) 40 # 4. With no caps: create fails (L1 yes, L2 no) 41 # 5. Without zfs allow grant: create fails even with CAP_FOWNER (L1 no) 43 # 7. With CAP_FOWNER + create grant only: snapshot fails (wrong perm) 56 # Step 1: Create delegation root. 57 # Use mountpoint=none so create/snapshot from the namespace don't 59 log_must zfs create -o mountpoint=none "$TESTPOOL/$TESTFS/deleg_root" [all …]
|
| H A D | zoned_uid_014_pos.ksh | 32 # Verify that an authorized user namespace can create sub-datasets 37 # 1. Create a delegation root and set zoned_uid 38 # 2. From user namespace, create a child dataset 39 # 3. From user namespace, create a grandchild under the child 51 log_assert "Authorized user namespace can create sub-datasets (grandchildren)" 54 # Create delegation root and set zoned_uid 55 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root" 58 create,mount 61 # Step 1: Create child from user namespace 64 create "$TESTPOOL/$TESTFS/deleg_root/child" 2>&1) [all …]
|
| H A D | zoned_uid_015_pos.ksh | 37 # 1. Create a delegation root with zoned_uid set 38 # 2. Create child datasets with inherited zoned_uid 39 # 3. Verify delegation works (create from namespace) 62 # Step 1-2: Create delegation root with children 63 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root" 66 create,mount 67 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root/child1" 74 create "$TESTPOOL/$TESTFS/deleg_root/ns_child" 2>&1) 78 log_note "Create output: $result" 90 log_must zpool create -f "$TESTPOOL" "$DISK" [all …]
|
| /freebsd/usr.sbin/ctladm/tests/ |
| H A D | port.sh | 51 if [ -e port-create.txt ]; then 54 PORTNUM=`awk '/port:/ {print $2}' port-create.txt` 58 TARGET=`awk '/target:/ {print $2}' port-create.txt` 68 atf_set "descr" "ctladm can create a new ioctl port" 76 atf_check -o save:port-create.txt ctladm port -c -d "ioctl" 77 atf_check egrep -q "Port created successfully" port-create.txt 78 atf_check egrep -q "frontend: *ioctl" port-create.txt 79 atf_check egrep -q "port: *[0-9]+" port-create.txt 80 portnum=`awk '/port:/ {print $2}' port-create.txt` 100 atf_check -o save:port-create.txt ctladm port -c -d "ioctl" [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/ |
| H A D | zfs_create_encrypted.ksh | 29 # ZFS should create datasets only if they have a valid combination of 65 # 1. Attempt to create a dataset using all combinations of encryption 80 log_assert "ZFS should create datasets only if they have a valid" \ 84 log_must zfs create $TESTPOOL/$TESTFS1 85 log_mustnot zfs create -o keyformat=passphrase $TESTPOOL/$TESTFS1/c1 86 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS1/c1 87 log_mustnot zfs create -o keyformat=passphrase -o keylocation=prompt \ 90 log_must zfs create -o encryption=off $TESTPOOL/$TESTFS1/c1 91 log_mustnot zfs create -o encryption=off -o keylocation=prompt \ 93 log_mustnot zfs create -o encryption=off -o keyformat=passphrase \ [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/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 …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
| H A D | zpool_create_encrypted.ksh | 27 # 'zpool create' should create an encrypted dataset only if it has a valid 54 # 1. Attempt to create a dataset using all combinations of encryption 66 log_assert "'zpool create' should create an encrypted dataset only if it" \ 69 log_mustnot zpool create -O keylocation=prompt $TESTPOOL $DISKS 70 log_mustnot zpool create -O keyformat=passphrase $TESTPOOL $DISKS 71 log_mustnot zpool create -O keyformat=passphrase -O keylocation=prompt \ 74 log_must zpool create -O encryption=off $TESTPOOL $DISKS 77 log_mustnot zpool create -O encryption=off -O keylocation=prompt \ 79 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \ 81 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \ [all …]
|
| H A D | zpool_create_009_neg.ksh | 38 # Create a pool with same devices twice or create two pools with same 39 # devices, 'zpool create' should failed. 42 # 1. Loop to create the following three kinds of pools. 46 # 2. Create two pools but using the same disks, expect failed. 47 # 3. Create one pool but using the same disks twice, expect failed. 61 log_assert "Create a pool with same devices twice or create two pools with " \ 62 "same devices, 'zpool create' should fail." 74 # Create two pools but using the same disks. 76 log_mustnot zpool create -f $TESTPOOL1 $opt $disks 79 # Create two pools and part of the devices were overlapped [all …]
|
| H A D | zpool_create_002_pos.ksh | 38 # 'zpool create -f <pool> <vspec> ...' can successfully create a 43 # 2. Use -f to override the devices to create new pools 64 log_assert "'zpool create -f <pool> <vspec> ...' can successfully create" \ 74 log_note "'zpool create' without '-f' will fail " \ 76 log_mustnot zpool create $TESTPOOL1 $DISK0 82 log_note "'zpool create' without '-f' will fail " \ 85 # fs must be mounted for create to fail on FreeBSD 89 log_mustnot zpool create $TESTPOOL $DISK1 91 # fs must not be mounted to create pool even with -f 100 log_note "'zpool create' mirror without '-f' will fail " \ [all …]
|
| H A D | zpool_create_draid_003_pos.ksh | 49 log_assert "'zpool create <pool> draid:#d:#c:#s <vdevs>'" 69 log_must zpool create $TESTPOOL $draid $draid_vdevs 84 log_mustnot zpool create $TESTPOOL draid:d8 $draid_vdevs 85 log_mustnot zpool create $TESTPOOL draid:s3 $draid_vdevs 86 log_mustnot zpool create $TESTPOOL draid:c32 $draid_vdevs 87 log_mustnot zpool create $TESTPOOL draid:10x $draid_vdevs 88 log_mustnot zpool create $TESTPOOL draid:x10 $draid_vdevs 91 log_must zpool create $TESTPOOL draid2:30d $draid_vdevs 93 log_mustnot zpool create $TESTPOOL draid2:31d $draid_vdevs 96 log_mustnot zpool create $TESTPOOL draid2:0d $draid_vdevs [all …]
|
| H A D | zpool_create_draid_005_pos.ksh | 51 log_assert "'zpool create <pool> draid:#d:#c:#w:#s <vdevs>'" 75 log_must zpool create $TESTPOOL $draid $draid_vdevs 79 # create the same pool with fgroup keywords 88 log_must zpool create $TESTPOOL $draid $draid_fgrp_vdevs 92 # create the same pool with fdomain keywords 101 log_must zpool create $TESTPOOL $draid $draid_fgrp_vdevs 120 log_must zpool create $TESTPOOL draid2:14d:32w $draid_vdevs 122 log_mustnot zpool create $TESTPOOL draid2:14d:33w $draid_vdevs 123 log_mustnot zpool create $TESTPOOL draid2:14d:31w $draid_vdevs 126 log_mustnot zpool create $TESTPOOL draid2:14d:32w fdomain $draid_vdevs [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/ |
| H A D | zvol_misc_hierarchy.ksh | 30 # 1. Create a filesystem and a ZVOL 34 # 5. Verify 'zfs create' cannot create datasets under a ZVOL 55 # 1. Create filesystems and ZVOLs 58 log_must zpool create -O mountpoint=none "$poolname" "$vdevfile" 59 log_must zfs create "$poolname/sendfs" 60 log_must zfs create -V 1M -s "$poolname/sendvol" 70 log_must zfs create "$poolname/fs" 71 log_must zfs create "$poolname/fs/subfs" 77 log_must zfs create -V 1M -s "$poolname/volume" 81 # 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 | 27 # 1. Verify 'zfs create' and 'zfs clone' cannot exceed the filesystem_limit 51 log_must zfs create -o mountpoint=none "$DATASET_TEST" 52 log_must zfs create -o mountpoint=none "$DATASET_UTIL" 54 log_must zfs create "$DATASET_TEST" 55 log_must zfs create "$DATASET_UTIL" 58 # Ensure our non-root user has the permission to create the 64 log_must zfs allow -d -l $STAFF1 'create,mount,rename,clone,receive' \ 66 log_must zfs allow -d -l $STAFF1 'create,mount,rename,clone,receive' \ 87 # 1. Verify 'zfs create' and 'zfs clone' cannot exceed the filesystem_limit 90 # '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 | 41 # 1. Create an array containing each zpool sub-command name. 49 set -A args "" "create" "add" "destroy" "import fakepool" \ 50 "export fakepool" "create fakepool" "add fakepool" \ 51 "create mirror" "create raidz" "create raidz1" \ 52 "create mirror fakepool" "create raidz fakepool" \ 53 "create raidz1 fakepool" "create raidz2 fakepool" \ 54 "create fakepool mirror" "create fakepool raidz" \ 55 "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/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/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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/ |
| H A D | zdb_args_neg.ksh | 41 # 1. Create an array containing bad zdb parameters. 48 set -A args "create" "add" "destroy" "import fakepool" \ 49 "export fakepool" "create fakepool" "add fakepool" \ 50 "create mirror" "create raidz" \ 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/ |
| 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 …]
|