# HG changeset patch # User Franz Glasner # Date 1714721092 -7200 # Node ID f06998866c0146733f2875ca05d0f7c770bd9882 # Parent 9c8ba2097a358bda1da165d1d0bc98bbd27955f6 Renamed local helper function diff -r 9c8ba2097a35 -r f06998866c01 sbin/fzfs --- a/sbin/fzfs Thu May 02 09:33:51 2024 +0200 +++ b/sbin/fzfs Fri May 03 09:24:52 2024 +0200 @@ -51,7 +51,7 @@ #: Output (stdout): #: An option string suited for use in "zfs create" #: -_get_local_properties() { +_get_local_zfs_properties_for_create() { local ds local _res _prop _value _source @@ -459,13 +459,13 @@ echo "ERROR: Got a snapshot but expected a filesystem" 1>&2 return 1 fi - _zfs_opts="$(_get_local_properties "${_current_name}" atime exec setuid compression primarycache sync readonly)" + _zfs_opts="$(_get_local_zfs_properties_for_create "${_current_name}" atime exec setuid compression primarycache sync readonly)" if [ -z "${_relative_name}" ]; then # # Root # if [ -z "${_opt_noauto}" ]; then - _zfs_canmount="$(_get_local_properties "${_current_name}" canmount)" + _zfs_canmount="$(_get_local_zfs_properties_for_create "${_current_name}" canmount)" else _zfs_canmount="${_opt_noauto}" fi @@ -496,7 +496,7 @@ if [ "${_opt_canmount_parent_only}" = "yes" ]; then _zfs_canmount="" else - _zfs_canmount="$(_get_local_properties "${_current_name}" canmount)" + _zfs_canmount="$(_get_local_zfs_properties_for_create "${_current_name}" canmount)" fi else _zfs_canmount="${_opt_noauto}"