changeset 441:f06998866c01

Renamed local helper function
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 03 May 2024 09:24:52 +0200
parents 9c8ba2097a35
children a2011285f054
files sbin/fzfs
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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}"