Home
last modified time | relevance | path

Searched full:dataset (Results 1 – 25 of 746) sorted by relevance

12345678910>>...30

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_bookmark/
H A Dzfs_bookmark_cliargs.ksh40 # 5. Verify at least a full dataset path is required and both snapshot and
50 # have the same dataset
57 snapexists "$DATASET@$TESTSNAP" && \
58 destroy_dataset "$DATASET@$TESTSNAP"
60 bkmarkexists "$DATASET#$TESTBM" && \
61 destroy_dataset "$DATASET#$TESTBM"
63 bkmarkexists "$DATASET#$TESTBMCOPY" && \
64 destroy_dataset "$DATASET#$TESTBMCOPY"
72 DATASET="$TESTPOOL/$TESTFS"
81 log_must zfs snapshot "$DATASET@$TESTSNAP"
[all …]
/freebsd/tests/sys/cddl/zfs/tests/snapused/
H A Dsnapused.kshlib35 function _check_used # dataset
37 typeset dataset=$1
39 if [[ "$(get_prop type $dataset)" == "snapshot" ]]; then
43 used=$(get_prop used $dataset)
44 usedbychildren=$(get_prop usedbychildren $dataset)
45 usedbydataset=$(get_prop usedbydataset $dataset)
46 usedbyrefreservation=$(get_prop usedbyrefreservation $dataset)
47 usedbysnapshots=$(get_prop usedbysnapshots $dataset)
51 log_fail "$dataset: used($used) is not the sum($used_sum) of usedby*"
55 function check_used # dataset
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapused/
H A Dsnapused.kshlib35 function _check_used # dataset
37 typeset dataset=$1
39 if [[ "$(get_prop type $dataset)" == "snapshot" ]]; then
43 used=$(get_prop used $dataset)
44 usedbychildren=$(get_prop usedbychildren $dataset)
45 usedbydataset=$(get_prop usedbydataset $dataset)
46 usedbyrefreservation=$(get_prop usedbyrefreservation $dataset)
47 usedbysnapshots=$(get_prop usedbysnapshots $dataset)
51 log_fail "$dataset: used($used) is not the sum($used_sum) of usedby*"
55 function check_used # dataset
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dreadonly_001_pos.ksh36 # Setting readonly on a dataset, it should keep the dataset as readonly.
40 # 2. Setting readonly to each dataset.
49 for dataset in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL ; do
50 snapexists ${dataset}@$TESTSNAP && \
51 destroy_dataset ${dataset}@$TESTSNAP -R
55 function initial_dataset # $1 dataset
57 typeset dataset=$1
59 typeset fstype=$(get_prop type $dataset)
62 typeset mtpt=$(get_prop mountpoint $dataset)
69 function cleanup_dataset # $1 dataset
[all …]
H A Dzfs_set_common.kshlib41 # Firstly, set the property value to dataset. Then checking if the property
46 # $3 dataset
53 typeset dataset=$3
59 [[ -n $prop ]] && old_value=$(get_prop $prop $dataset)
62 [[ -z $prop || -z $dataset ]] && \
63 log_fail "property or dataset isn't defined."
65 log_must zfs set $prop=$expect_value $dataset
70 [[ -n $prop ]] && cur_value=$(get_prop $prop $dataset)
76 log_fail "The '$dataset' '$prop' value" \
79 log_fail "The '$dataset' '$prop' value '$cur_value'" \
[all …]
H A Dsnapdir_001_pos.ksh36 # Setting a valid snapdir on a dataset, it should be successful.
40 # 2. Create a snapshot for each dataset.
41 # 3. Setting different valid snapdir to each dataset.
50 for dataset in $all_datasets; do
51 snapexists ${dataset}@snap && destroy_dataset ${dataset}@snap
55 function verify_snapdir_visible # $1 dataset, $2 hidden|visible
57 typeset dataset=$1
59 typeset mtpt=$(get_prop mountpoint $dataset)
80 for dataset in $all_datasets; do
81 log_must zfs snapshot ${dataset}@snap
[all …]
H A Dcanmount_002_pos.ksh43 # 2. Set canmount=noauto for each dataset and check the return value
46 # 3. mount each dataset(except volume) to see if it can be mounted.
47 # 4. verify that a mounted dataset can be shared by share -a.
120 dataset=${dataset_pos[i]}
121 set_n_check_prop "noauto" "canmount" "$dataset"
122 log_must zfs set mountpoint=$tmpmnt $dataset
123 log_must zfs set sharenfs=on $dataset
124 if ismounted $dataset; then
126 log_must mounted $dataset
127 log_must zfs unmount $dataset
[all …]
H A Dzfs_set_nomount.ksh33 # properties without mounting and sharing the dataset. Validate the
34 # bevaior while dataset is mounted and unmounted.
37 # 1. Confirm dataset is currently mounted
40 # 4. Confirm dataset is still mounted at previous mountpoint
41 # 5. Unmount the dataset
42 # 6. Confirm dataset is unmounted
43 # 7. Mount the dataset
44 # 8. Confirm dataset is mounted at new mountpoint, that was set with -u flag.
45 # 9. Update and mount the dataset at previous mountpoint.
46 # 10. Unmount the dataset
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dreadonly_001_pos.ksh36 # Setting readonly on a dataset, it should keep the dataset as readonly.
40 # 2. Setting readonly to each dataset.
58 for dataset in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL ; do
59 snapexists ${dataset}@$TESTSNAP && \
60 log_must $ZFS destroy -R ${dataset}@$TESTSNAP
64 function initial_dataset # $1 dataset
66 typeset dataset=$1
68 typeset fstype=$(get_prop type $dataset)
71 typeset mtpt=$(get_prop mountpoint $dataset)
78 function cleanup_dataset # $1 dataset
[all …]
H A Dsnapdir_001_pos.ksh36 # Setting a valid snapdir on a dataset, it should be successful.
40 # 2. Create a snapshot for each dataset.
41 # 3. Setting different valid snapdir to each dataset.
59 for dataset in $all_datasets; do
60 snapexists ${dataset}@snap && \
61 log_must $ZFS destroy ${dataset}@snap
65 function verify_snapdir_visible # $1 dataset, $2 hidden|visible
67 typeset dataset=$1
69 typeset mtpt=$(get_prop mountpoint $dataset)
102 for dataset in $all_datasets; do
[all …]
H A Dcanmount_002_pos.ksh43 # 2. Set canmount=noauto for each dataset and check the retuen value
45 # 3. mount each dataset(except volume) to see if it can be mounted.
136 dataset=${dataset_pos[i]}
137 set_n_check_prop "noauto" "canmount" "$dataset"
138 log_must $ZFS set mountpoint=$tmpmnt $dataset
139 if ismounted $dataset; then
141 log_must mounted $dataset
142 log_must $ZFS unmount $dataset
143 log_must unmounted $dataset
145 log_must unmounted $dataset
[all …]
/freebsd/sys/contrib/openzfs/man/man8/
H A Dzfs-program.8232 (the name of the dataset to destroy) and an optional "defer" keyword boolean
261 .Dl errno = Sy zfs.sync.promote Ns Pq dataset
265 .No errno, details = Sy zfs.sync.promote Ns Pq dataset
299 .It Fn zfs.exists dataset
300 Returns true if the given dataset exists, or false if it doesn't.
301 A fatal error will be thrown if the dataset is not in the target pool.
309 .It Ar dataset Pq string
310 Dataset to check for existence.
313 .It Fn zfs.get_prop dataset property
316 dataset.
[all …]
H A Dzdb.834 .Op Ar poolname Ns Op / Ns Ar dataset Ns | Ns Ar objset-ID
41 .Ar poolname Ns Op Ar / Ns Ar dataset Ns | Ns Ar objset-ID
73 .Ar dataset path
77 .Ar dataset path destination
109 .Ar dataset
115 The root dataset can be specified as
137 but for the numeric objset ID, and without opening the dataset.
138 This can be useful in recovery scenarios if dataset metadata has become
139 corrupted but the dataset itself is readable.
172 Specified once, displays basic dataset information: ID, create transaction,
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/inheritance/
H A Dinherit_001_pos.ksh55 typeset dataset=$1
60 create_pool "$dataset" "$disks"
62 log_must zfs create $dataset
63 log_must zfs set canmount=off $dataset
65 log_must zfs create $dataset
70 list="$list $dataset"
75 # dataset, setting them to a 'local' value if required.
77 function init_props { #dataset init_code
78 typeset dataset=$1
90 log_note "Leaving properties for $dataset unchanged."
[all …]
/freebsd/tests/sys/cddl/zfs/tests/inheritance/
H A Dinherit_001_pos.ksh65 typeset dataset=$1
70 create_pool "$dataset" "$disks"
72 log_must $ZFS create $dataset
73 log_must $ZFS set canmount=off $dataset
75 log_must $ZFS create $dataset
80 list="$list $dataset"
85 # dataset, setting them to a 'local' value if required.
87 function init_props #dataset init_code
89 typeset dataset=$1
100 log_note "Leaving properties for $dataset unchanged."
[all …]
/freebsd/sys/contrib/openzfs/cmd/
H A Dmount_zfs.c51 parse_dataset(const char *target, char **dataset) in parse_dataset() argument
55 * current working directory was named 'dataset' then mount(8) in parse_dataset()
56 * would prepend the current working directory to the dataset. in parse_dataset()
68 /* Assume pool/dataset is more likely */ in parse_dataset()
69 strlcpy(*dataset, target, PATH_MAX); in parse_dataset()
79 strlcpy(*dataset, nm, PATH_MAX); in parse_dataset()
111 mtab_update(const char *dataset, const char *mntpoint, const char *type, in mtab_update() argument
118 mnt.mnt_fsname = (char *)dataset; in mtab_update()
130 dataset, strerror(errno)); in mtab_update()
139 dataset, strerror(errno)); in mtab_update()
[all …]
/freebsd/sys/contrib/openzfs/contrib/dracut/90zfs/
H A Dzfs-lib.sh.in19 # mount_dataset DATASET
20 # mounts the given zfs dataset.
22 dataset="${1}"
23 mountpoint="$(zfs get -H -o value mountpoint "${dataset}")"
28 mount -t zfs "${dataset}" "${NEWROOT}" || ret=$?
30 mount -o zfsutil -t zfs "${dataset}" "${NEWROOT}" || ret=$?
33 for_relevant_root_children "${dataset}" _mount_dataset_cb || ret=$?
40 # for_relevant_root_children DATASET EXEC
41 # Runs "EXEC dataset mountpoint" for all children of DATASET that are needed for system bringup
44 dataset="${1}"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_share/
H A Dzfs_share_012_pos.ksh38 # 1. Share a dataset that also has canmount set to noauto
39 # 2. Capture the zfs exports file when the dataset is mounted + shared
40 # 3. Simulate a reboot by unmounting the dataset and restoring the exports file
41 # 4. Verify that 'zfs share -a' removes the export since dataset is not mounted
46 dataset="$TESTPOOL/$TESTFS"
47 mountpt=$(get_prop mountpoint $dataset)
51 zfs set canmount=on $dataset
52 zfs set sharenfs=off $dataset
67 log_must zfs set canmount=noauto $dataset
68 zfs mount $dataset > /dev/null 2>&1
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-zone.c54 char zd_dsname[]; /* name of the member dataset */
124 zone_dataset_lookup(zone_datasets_t *zds, const char *dataset, size_t dsnamelen) in zone_dataset_lookup() argument
131 if (strncmp(zd->zd_dsname, dataset, dsnamelen) == 0) in zone_dataset_lookup()
150 zone_dataset_name_check(const char *dataset, size_t *dsnamelen) in zone_dataset_name_check() argument
153 if (dataset[0] == '\0' || dataset[0] == '/') in zone_dataset_name_check()
156 *dsnamelen = strlen(dataset); in zone_dataset_name_check()
158 if (dataset[*dsnamelen - 1] == '/') in zone_dataset_name_check()
165 zone_dataset_attach(cred_t *cred, const char *dataset, int userns_fd) in zone_dataset_attach() argument
176 if ((error = zone_dataset_name_check(dataset, &dsnamelen)) != 0) in zone_dataset_attach()
195 zd = zone_dataset_lookup(zds, dataset, dsnamelen); in zone_dataset_attach()
[all …]
/freebsd/sys/contrib/openzfs/man/man7/
H A Ddracut.zfs.772 Booting into a ZFS dataset requires
74 to be set on the dataset containing the root filesystem (henceforth "the boot
75 dataset") and at the very least either the
77 property to be set to that dataset, or the
81 All children of the boot dataset with
96 .It Sy root=zfs:\& Ns Ar dataset , Sy root=ZFS= Ns Ar dataset
98 .Ar dataset
99 as the boot dataset.
109 .Ar dataset
112 .It Sy rootfstype=zfs root= Ns Ar dataset
[all …]
H A Dzfsprops.764 Every dataset has a set of properties that export statistics about the dataset
95 dataset.
97 Native properties apply to all dataset types unless otherwise noted.
100 The amount of space available to the dataset and all its children, assuming that
111 space of this dataset, expressed as a multiplier.
122 .Nm zfs Cm set Sy compression Ns = Ns Sy on Ar dataset .
126 The transaction group (txg) in which the dataset was created.
133 The time this dataset was created.
161 For encrypted datasets, indicates where the dataset is currently inheriting its
179 the dataset tree.
[all …]
/freebsd/sys/contrib/openzfs/contrib/dracut/
H A DREADME.md3 2. Set `mountpoint=/` for your root dataset (for compatibility, `legacy` also works, but is not rec…
5 zfs set mountpoint=/ pool/dataset
7 3. Either (a) set `bootfs=` on the pool to the dataset:
9 zpool set bootfs=pool/dataset pool
11 4. Or (b) append `root=zfs:pool/dataset` to your kernel cmdline.
16 If the root dataset contains children with `mountpoint=`s of `/etc`, `/bin`, `/lib*`, or `/usr`, th…
21 1. `root=` | Root dataset is… |
25 `ZFS=pool/dataset` | `pool/dataset` |
26 `zfs:pool/dataset` | *(as above)* |
30 The dataset can be at any depth, including being the pool's root dataset (i.e. `root=zfs:pool`).
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_zone.c59 zone_dataset_attach(struct ucred *cred, const char *dataset, int jailid) in zone_dataset_attach() argument
70 zd = malloc(sizeof (*zd) + strlen(dataset) + 1, M_ZONES, M_WAITOK); in zone_dataset_attach()
84 if (strcmp(dataset, zd2->zd_dataset) == 0) { in zone_dataset_attach()
101 strcpy(zd->zd_dataset, dataset); in zone_dataset_attach()
112 zone_dataset_detach(struct ucred *cred, const char *dataset, int jailid) in zone_dataset_detach() argument
133 if (strcmp(dataset, zd->zd_dataset) == 0) in zone_dataset_detach()
151 * Returns true if the named dataset is visible in the current zone.
152 * The 'write' parameter is set to 1 if the dataset is also writable.
155 zone_dataset_visible(const char *dataset, int *write) in zone_dataset_visible() argument
163 if (dataset[0] == '\0') in zone_dataset_visible()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_002_pos.ksh42 # 2. Rename each dataset object to a new name.
43 # 3. Rename each dataset back to its original name.
51 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
67 while ((i < ${#dataset[*]} )); do
70 rename_dataset ${dataset[i]} ${dataset[i]}-new
71 rename_dataset ${dataset[i]}-new ${dataset[i]}
76 if [[ ${dataset[i]} == *@* ]]; then
77 data=$(snapshot_mountpoint ${dataset[i]})/$TESTFILE0
78 elif [[ ${dataset[i]} == "$TESTPOOL/$TESTVOL" ]] && is_global_zone; then
82 data=$(get_prop mountpoint ${dataset[i]})/$TESTFILE0
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unload-key/
H A Dzfs_unload-key.ksh26 # 'zfs unload-key' should only unload the key of an unmounted dataset.
29 # 1. Attempt to unload the default dataset's key
30 # 2. Unmount the dataset
31 # 3. Attempt to unload the default dataset's key
32 # 4. Create an encrypted dataset
33 # 5. Attempt to unload the dataset's key
35 # 7. Unmount the dataset
36 # 8. Attempt to unload the dataset's key
38 # 10. Attempt to unload the dataset's key
51 "encrypted dataset"
[all …]

12345678910>>...30