Lines Matching refs:zfs

465 	/usr/sbin/zfs list -H -o name,mountpoint "$path" 2>/dev/null | \
529 zfs create -o zoned=on -o mountpoint=/rpool \
559 zfs create -o canmount=noauto -o mountpoint=legacy \
565 zfs inherit zoned "${zone.ROOT_ds}"
571 # zfs_set doesn't do -r so use zfs command directly.
572 zfs set -r canmount=noauto "${zone.ROOT_ds}" || return 1
578 zfs create -o mountpoint=/export "${zone.rpool_ds}/export" || {
583 zfs create "${zone.rpool_ds}/export/home" || {
657 # Create the new active dataset with "zfs create" or "zfs clone",
689 zfs clone "${be_props[@]}" "${sl_opt[@]}" "$snapshot" \
693 zfs create "${be_props[@]}" "$dsname" \
707 zfs create -o mountpoint="/$child" -o canmount=noauto \
1126 zfs|*ZFS\ snapshot\ stream*)
1127 filetype="zfs"
1136 # compressed archives only supported for cpio and zfs
1139 if [[ $filetype != cpio && $filetype != zfs ]]; then
1148 if [[ $filetype != @(existing|zfs|flar) ]]; then
1161 zfs set "$PROP_CANDIDATE=on" "${zone.active_ds}" ||
1208 if [[ $filetype != @(existing|zfs|flar) ]]; then
1261 elif [[ "$filetype" == "zfs" ]]; then
1297 # Receive the zfs stream from the specified file. The stream is passed through
1309 # Returns the return value from "zfs receive". May exit with fatal errors.
1321 zfs create -o zoned=on "${zone.path.ds}/installtmp" || fatal "$f_no_ds"
1330 set -A cmd zfs receive -F -u -x zoned "${zone.path.ds}/installtmp/ds"
1338 zfs destroy "${zone.path.ds}/installtmp" || \
1366 zfs destroy "${zone.path.ds}/installtmp" || \
1417 # Source Layout Dataset provided as arg to zfs send Check# Notes
1463 # 1. The archive must be created with "zfs send -R", "zfs send -r",
1464 # or "zfs send -rc". Note that "zfs send -r" first appears in
1468 # without the -R or -r[c] options to zfs send.
1484 zfs set canmount=noauto "$topdsn" && \
1485 zfs set mountpoint=/ $topdsn ||
1528 /usr/sbin/zfs list -H -o name -t filesystem,volume -r \
1536 if /usr/sbin/zfs list "${zone.rpool_ds}/$rdsn" \
1578 zfs destroy "$dsn"
1584 zfs rename "$rpooldsn/$dsn" "${zone.rpool_ds}/$dsn" ||
1616 if /usr/sbin/zfs rename "$ROOTdsn/$be" \
1635 /usr/sbin/zfs list -H -o name -t filesystem,volume "$topdsn" \
1647 (( delete_topdsn )) && zfs destroy -r "$topdsn"
1656 if ! zonecfg_has_export zone && ! /usr/sbin/zfs list -H -o name \
1659 if ! zfs create -o mountpoint=/export "${zone.rpool_ds}/export"
1663 zfs create "${zone.rpool_ds}/export/home" ||
1686 children=$(/usr/sbin/zfs list -Hr -d 1 -t snapshot -o name "$dsn" | \
1700 if [[ "$(zfs list -H -o mounted "$dsn")" == yes ]]; then
1702 mntpt=$(zfs list -H -o mountpoint "$dsn") || return 1
1747 zfs set zoned=on "${zone.rpool_ds}"
1749 zfs list -H -o name -d 1 -t filesystem,volume "${zone.rpool_ds}" | \
1752 zfs inherit -r zoned $dsn || return 1
1756 zfs list -H -o name -t filesystem "${zone.ROOT_ds}" | \
1763 zfs set mountpoint=${dsn#$be_dsn} "$dsn" || return 1
1765 zfs set canmount=noauto "$dsn" || return 1
1902 /usr/sbin/zfs list -H -o name -r -d 1 -t filesystem "$ROOTdsn" \
1935 # Look at each ZBE. Ignore zfs list result, as it is OK to call this
1938 /usr/sbin/zfs list -H -o name,mountpoint -r -d 1 "${zone.ROOT_ds}" \
2052 # ds in $(zfs list -r ...)" because this is tolerant of dataset names that
2094 /usr/sbin/zfs list -H -o name -t $dstype -r "$dataset" 2>/dev/null \
2159 zfs snapshot -r "$rpool_ds@$snapname" >/dev/null 2>&1 \
2175 # deffered destruction with 'zfs destroy -d'
2232 # will be copied with "zfs send | zfs recv". However, this is tricky.
2237 # implies the need for zfs send -[r]c.
2271 # The following zfs call should only fail if some
2277 dstype=$(zfs get -H -o value type "${dss.name}") || \
2318 # snapshot must not exist when the 'zfs send'
2322 zfs destroy $snap || return 1
2337 if /usr/sbin/zfs list "$newdsname" >/dev/null 2>&1; then
2346 zfs list "$newdsname" >/dev/null 2>&1
2352 zfs clone "${sl_opt[@]}" "$snap" "$newdsname" ||
2366 zfs inherit zoned "$newdsname" || return 1
2383 zfs create "${d.path.ds}/clonetmp" || return 1
2384 /usr/sbin/zfs send -rc "${s.rpool_ds}@$snapname" |
2385 /usr/sbin/zfs recv -Fu "${d.path.ds}/clonetmp/rpool"
2389 zfs destroy -rd "${s.rpool_ds}@$snapname" ||
2392 zfs destroy -r "${d.path.ds}/clonetmp" &&
2399 zfs destroy -rd "${s.rpool_ds}@$snapname" ||
2402 zfs destroy -r "${d.path.ds}/clonetmp" &&
2407 zfs destroy "${d.path.ds}/clonetmp" || \
2411 zfs destroy -rd "${d.rpool_ds}@$snapname"
2424 zfs destroy -rd "${s.rpool_ds}@$snapname" || return 1
2463 /usr/sbin/zfs get -Hp -o property,source,value all "${dss.name}" \
2658 # property=value Passed directly to "zfs set". dss.props[property].* is
2679 /usr/sbin/zfs set "$propval" "${dss.name}" || {
2698 # zfs [zfs(1M) args]
2700 # On its own, zfs(1M) only tells you that something failed, it doesn't tell
2702 # serves as a wrapper around zfs(1M) to be more verbose about what zfs(1M)
2705 # To avoid unnecessary error messages for the times that zfs failures are
2707 # "/usr/sbin/zfs" instead of "zfs".
2709 function zfs {
2710 /usr/sbin/zfs "$@"
2712 (( rv == 0 )) || error "$e_cmd_failed" "zfs $*" $rv
2723 # dataset according to zfs(1M).
2754 # mountpoint from zfs(1M) is a bit of a problem:
2795 zfs inherit zoned "${dss.name}" || return 1
2808 zonedval=$(zfs get -H -o value zoned "${dss.name}") || return 1
2839 # is created if necessary. The zfs mountpoint property must not be "legacy"
2844 # mount option "nodevices" overrides the "devices" zfs property. This
2845 # provides protection that wouldn't be afforded by simply setting the zfs
2863 zfs mount -o nodevices,mountpoint="$dir" "$dsname" || {
2929 # Ask zfs for an exact match
2945 # Use zfs(1M) to mount it.
2965 typeset zfslist_r # -r for zfs list, if needed
2985 # associative array. stderr and return value from zfs list command are
2989 zfs list -H -o name -t filesystem $zfslist_r "$rootds" 2>/dev/null \
3062 zfs unmount "${umount_on_error[i]}" \
3113 # get the persistent mountpoint property out of zfs(1M).
3165 [[ $fstype != zfs ]] && continue
3250 zfs list -H -o name,mountpoint "$line" 2>/dev/null
3277 zfs destroy "$dsname" || {
3409 log "$m_migrating_data" "$(zfs list -H -o name "${zone.root}/export")" \
3410 "$(zfs list -H -o name "$dir/export")"
3486 log "$m_migrating_data" "$(zfs list -H -o name "${zone.root}/rpool")" \
3487 "$(zfs list -H -o name "$dir/rpool")"
3735 /usr/sbin/zfs get -Hrp -o value,name guid "$topdsn" 2>/dev/null |
3770 /usr/sbin/zfs get -Hrp -o value,name guid "$topdsn" 2>/dev/null |
3811 # Avoid EBUSY during the umount(2) performed by 'zfs destroy'.
3816 /usr/sbin/zfs get -Hrp -o value,name guid "$topdsn" 2>/dev/null |
3834 /usr/sbin/zfs destroy "$name" >/dev/null 2>&1
3994 e_zfs_set=$(gettext "Error: Cannot set zfs property %s on %s")
3995 e_zfs_inherit=$(gettext "Error: Cannot inherit zfs property %s on %s")