# HG changeset patch # User Franz Glasner # Date 1714721709 -7200 # Node ID a2011285f054fa556e0dc257c7f6d0677e9a5378 # Parent f06998866c0146733f2875ca05d0f7c770bd9882 Move "_get_local_zfs_properties_for_create()" into common.subr diff -r f06998866c01 -r a2011285f054 sbin/fzfs --- a/sbin/fzfs Fri May 03 09:24:52 2024 +0200 +++ b/sbin/fzfs Fri May 03 09:35:09 2024 +0200 @@ -41,45 +41,8 @@ ' -#: -#: Determine some important dataset properties that are set locally -#: -#: Args: -#: $1: the dataset -#: $2 ...: the properties to check for -#: -#: Output (stdout): -#: An option string suited for use in "zfs create" -#: -_get_local_zfs_properties_for_create() { - local ds - - local _res _prop _value _source - - ds="${1}" - shift - - _res="" - - for _prop in "$@" ; do - IFS=$'\t' read -r _value _source < #: :ID: @(#)@@SIMPLEVERSIONTAG@@ #: + +#: +#: Determine some important dataset properties that are set locally +#: +#: Args: +#: $1: the dataset +#: $2 ...: the properties to check for +#: +#: Output (stdout): +#: An option string suited for use in "zfs create" +#: +_get_local_zfs_properties_for_create() { + local ds + + local _res _prop _value _source + + ds="${1}" + shift + + _res="" + + for _prop in "$@" ; do + IFS=$'\t' read -r _value _source <