Home
last modified time | relevance | path

Searched full:create (Results 1 – 25 of 8401) sorted by relevance

12345678910>>...337

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/
H A Dzpool_create_001_neg.ksh28 # Verify that 'zpool create' fails as a non-root user.
31 # 1. Create an array of options.
46 set -A args "create" "create -f" "create -n" \
47 "create $TESTPOOL" "create -f $TESTPOOL" "create -n $TESTPOOL" \
48 "create -fn $TESTPOOL" "create -nf $TESTPOOL" \
49 "create $TESTPOOL $ADD_DISK" "create -f $TESTPOOL $ADD_DISK"
51 set -A args "create" "create -f" "create -n" \
52 "create $TESTPOOL" "create -f $TESTPOOL" "create -n $TESTPOOL" \
53 "create -fn $TESTPOOL" "create -nf $TESTPOOL" \
54 "create $TESTPOOL $ADD_DISK" "create -f $TESTPOOL $ADD_DISK" \
[all …]
H A Dsetup.ksh37 # Create a default setup that includes a volume
45 # create a snapshot and a clone to test clone promote
48 # create a file in the filesystem that isn't in the above snapshot
52 # create a non-default property and a child we can use to test inherit
53 log_must zfs create $TESTPOOL/$TESTFS/$TESTFS2
57 # create an unmounted filesystem to test unmount
58 log_must zfs create $TESTPOOL/$TESTFS/$TESTFS2.unmounted
71 # create a filesystem that has particular properties to test set/get
72 log_must zfs create -o version=1 $TESTPOOL/$TESTFS/prop
85 # create a filesystem we don't mind renaming
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zoned_uid/
H A Dzoned_uid_019_neg.ksh26 # 1. Create two sibling delegation roots with different zoned_uids
27 # 2. Create a child under each from global zone
28 # 3. From UID A's namespace: verify can create under deleg_root_a
29 # 4. From UID A's namespace: attempt create under deleg_root_b (FAIL)
32 # 7. From UID B's namespace: verify can create under deleg_root_b
33 # 8. From UID B's namespace: attempt create under deleg_root_a (FAIL)
48 # Step 1: Create two sibling delegation roots
49 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root_a"
52 create,mount
54 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root_b"
[all …]
H A Dzoned_uid_023_pos.ksh22 # Additive least privilege: non-destructive operations (create, snapshot,
27 # 1. Create delegation root with zoned_uid
28 # 2. Grant create,snapshot,mount via zfs allow
29 # 3. With CAP_FOWNER: create succeeds (L1 yes + L2 yes)
30 # 4. With no caps: create fails (L1 yes, L2 no)
31 # 5. Without zfs allow grant: create fails even with CAP_FOWNER (L1 no)
33 # 7. With CAP_FOWNER + create grant only: snapshot fails (wrong perm)
46 # Step 1: Create delegation root.
47 # Use mountpoint=none so create/snapshot from the namespace don't
49 log_must zfs create -o mountpoint=none "$TESTPOOL/$TESTFS/deleg_root"
[all …]
H A Dzoned_uid_014_pos.ksh22 # Verify that an authorized user namespace can create sub-datasets
27 # 1. Create a delegation root and set zoned_uid
28 # 2. From user namespace, create a child dataset
29 # 3. From user namespace, create a grandchild under the child
41 log_assert "Authorized user namespace can create sub-datasets (grandchildren)"
44 # Create delegation root and set zoned_uid
45 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root"
48 create,mount
51 # Step 1: Create child from user namespace
54 create "$TESTPOOL/$TESTFS/deleg_root/child" 2>&1)
[all …]
H A Dzoned_uid_015_pos.ksh27 # 1. Create a delegation root with zoned_uid set
28 # 2. Create child datasets with inherited zoned_uid
29 # 3. Verify delegation works (create from namespace)
52 # Step 1-2: Create delegation root with children
53 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root"
56 create,mount
57 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root/child1"
64 create "$TESTPOOL/$TESTFS/deleg_root/ns_child" 2>&1)
68 log_note "Create output: $result"
80 log_must zpool create -f "$TESTPOOL" "$DISK"
[all …]
H A Dzoned_uid_018_pos.ksh26 # 1. Create delegation root with zoned_uid
27 # 2. From namespace: create child dataset
28 # 3. From namespace: create snapshot on child
46 # Step 1: Create delegation root
47 log_must zfs create "$TESTPOOL/$TESTFS/deleg_root"
50 create,mount,snapshot,clone
52 # Step 2: Create child from namespace
55 create "$TESTPOOL/$TESTFS/deleg_root/child" 2>&1)
57 log_note "Create child output: $result"
58 log_fail "Failed to create child from namespace"
[all …]
/freebsd/usr.sbin/ctladm/tests/
H A Dport.sh51 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/tests/sys/fs/fusefs/
H A Dcreate.cc40 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 Dzfs_create_encrypted.ksh25 # ZFS should create datasets only if they have a valid combination of
61 # 1. Attempt to create a dataset using all combinations of encryption
76 log_assert "ZFS should create datasets only if they have a valid" \
80 log_must zfs create $TESTPOOL/$TESTFS1
81 log_mustnot zfs create -o keyformat=passphrase $TESTPOOL/$TESTFS1/c1
82 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS1/c1
83 log_mustnot zfs create -o keyformat=passphrase -o keylocation=prompt \
86 log_must zfs create -o encryption=off $TESTPOOL/$TESTFS1/c1
87 log_mustnot zfs create -o encryption=off -o keylocation=prompt \
89 log_mustnot zfs create -o encryption=off -o keyformat=passphrase \
[all …]
/freebsd/tools/regression/zfs/zpool/create/
H A Doption-f_inuse.t11 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 Dzpool_create_009_neg.ksh28 # Create a pool with same devices twice or create two pools with same
29 # devices, 'zpool create' should failed.
32 # 1. Loop to create the following three kinds of pools.
36 # 2. Create two pools but using the same disks, expect failed.
37 # 3. Create one pool but using the same disks twice, expect failed.
51 log_assert "Create a pool with same devices twice or create two pools with " \
52 "same devices, 'zpool create' should fail."
64 # Create two pools but using the same disks.
66 log_mustnot zpool create -f $TESTPOOL1 $opt $disks
69 # Create two pools and part of the devices were overlapped
[all …]
H A Dzpool_create_encrypted.ksh23 # 'zpool create' should create an encrypted dataset only if it has a valid
50 # 1. Attempt to create a dataset using all combinations of encryption
62 log_assert "'zpool create' should create an encrypted dataset only if it" \
65 log_mustnot zpool create -O keylocation=prompt $TESTPOOL $DISKS
66 log_mustnot zpool create -O keyformat=passphrase $TESTPOOL $DISKS
67 log_mustnot zpool create -O keyformat=passphrase -O keylocation=prompt \
70 log_must zpool create -O encryption=off $TESTPOOL $DISKS
73 log_mustnot zpool create -O encryption=off -O keylocation=prompt \
75 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \
77 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \
[all …]
H A Dzpool_create_002_pos.ksh28 # 'zpool create -f <pool> <vspec> ...' can successfully create a
33 # 2. Use -f to override the devices to create new pools
54 log_assert "'zpool create -f <pool> <vspec> ...' can successfully create" \
64 log_note "'zpool create' without '-f' will fail " \
66 log_mustnot zpool create $TESTPOOL1 $DISK0
72 log_note "'zpool create' without '-f' will fail " \
75 # fs must be mounted for create to fail on FreeBSD
79 log_mustnot zpool create $TESTPOOL $DISK1
81 # fs must not be mounted to create pool even with -f
90 log_note "'zpool create' mirror without '-f' will fail " \
[all …]
H A Dzpool_create_draid_003_pos.ksh39 log_assert "'zpool create <pool> draid:#d:#c:#s <vdevs>'"
59 log_must zpool create $TESTPOOL $draid $draid_vdevs
74 log_mustnot zpool create $TESTPOOL draid:d8 $draid_vdevs
75 log_mustnot zpool create $TESTPOOL draid:s3 $draid_vdevs
76 log_mustnot zpool create $TESTPOOL draid:c32 $draid_vdevs
77 log_mustnot zpool create $TESTPOOL draid:10x $draid_vdevs
78 log_mustnot zpool create $TESTPOOL draid:x10 $draid_vdevs
81 log_must zpool create $TESTPOOL draid2:30d $draid_vdevs
83 log_mustnot zpool create $TESTPOOL draid2:31d $draid_vdevs
86 log_mustnot zpool create $TESTPOOL draid2:0d $draid_vdevs
[all …]
H A Dzpool_create_draid_005_pos.ksh41 log_assert "'zpool create <pool> draid:#d:#c:#w:#s <vdevs>'"
65 log_must zpool create $TESTPOOL $draid $draid_vdevs
69 # create the same pool with fgroup keywords
78 log_must zpool create $TESTPOOL $draid $draid_fgrp_vdevs
82 # create the same pool with fdomain keywords
91 log_must zpool create $TESTPOOL $draid $draid_fgrp_vdevs
110 log_must zpool create $TESTPOOL draid2:14d:32w $draid_vdevs
112 log_mustnot zpool create $TESTPOOL draid2:14d:33w $draid_vdevs
113 log_mustnot zpool create $TESTPOOL draid2:14d:31w $draid_vdevs
116 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 Dzvol_misc_hierarchy.ksh26 # 1. Create a filesystem and a ZVOL
30 # 5. Verify 'zfs create' cannot create datasets under a ZVOL
51 # 1. Create filesystems and ZVOLs
54 log_must zpool create -O mountpoint=none "$poolname" "$vdevfile"
55 log_must zfs create "$poolname/sendfs"
56 log_must zfs create -V 1M -s "$poolname/sendvol"
66 log_must zfs create "$poolname/fs"
67 log_must zfs create "$poolname/fs/subfs"
73 log_must zfs create -V 1M -s "$poolname/volume"
77 # 5. Verify 'zfs create' cannot create datasets under a ZVOL
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_user/misc/
H A Dsetup.ksh40 # 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/cli_root/zpool/
H A Dzpool_001_neg.ksh31 # 1. Create an array containing each zpool sub-command name.
39 set -A args "" "create" "add" "destroy" "import fakepool" \
40 "export fakepool" "create fakepool" "add fakepool" \
41 "create mirror" "create raidz" "create raidz1" \
42 "create mirror fakepool" "create raidz fakepool" \
43 "create raidz1 fakepool" "create raidz2 fakepool" \
44 "create fakepool mirror" "create fakepool raidz" \
45 "create fakepool raidz1" "create fakepool raidz2" \
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/limits/
H A Dfilesystem_limit.ksh27 # 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/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_009_neg.ksh36 # 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_args_neg.ksh31 # 1. Create an array containing bad zdb parameters.
38 set -A args "create" "add" "destroy" "import fakepool" \
39 "export fakepool" "create fakepool" "add fakepool" \
40 "create mirror" "create raidz" \
41 "create mirror fakepool" "create raidz fakepool" \
42 "create raidz1 fakepool" "create raidz2 fakepool" \
43 "create fakepool mirror" "create fakepool raidz" \
44 "create fakepool raidz1" "create fakepool raidz2" \
/freebsd/contrib/pjdfstest/tests/granular/
H A D00.t25 # 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 Dif_vlan.sh20 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/tests/sys/cddl/zfs/tests/cli_root/zpool/
H A Dzpool_001_neg.ksh39 # 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" \

12345678910>>...337