forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use "${VAR}" instead of "$VAR". * Create zfs_run_cmd() which records stderr, exit code etc. * Create check_boolean() to check if a user config option is set ('yes', 'Yes', 'YES' or any combination there of) OR '1'. Anything else is considered 'unset'. * Put the check for zfs debugging in check_zfs_debug(). Use this in zfs_action() to check if we should output the message we're called with. * Move code snippet that fetches and mounts recursive filesystems into the new recursive_mount_filesystems() function. * Minor fix/change to read_mtab(): * Strip control characters (space - \040) from /proc/mounts GLOBALY, not just first occurrence. * Don't replace unprintable characters ([/-. ]) for use in the variable name with underscore. No need, just remove them all together. * Instead of using ZFS_CMD+zfs_action()+zfs_log_failure_msg() etc each and every time, use the more generic zfs_action() that does most of this for us. * Downside: Won't accept pools with spaces in them any more :(. Need to find a way to solve this (can't use arrays, because we're not running under bash!). * Apparently "var > 0" doesn't work. Use 'var -gt 0' instead. But that means that 'var' needs to be set. * (Re)set IFS in zfs_action() as first step so that command line options doesn't get clobbered. * Fix checking if pool is imported in import_pool(). * Remove "sort". Sometimes not available, and not really nessesary. * Add ZPOOL_CACHE option (commented out) and documentation in the defaults file to indicate that the default in zfs-functions can be overwritten. * Needed when/if enforcing the use of a cache file is needed/wanted. * Remove some 'local' variables in do_import(). Signed-off-by: Turbo Fredriksson <[email protected]> Closes openzfs#3782 Closes openzfs#3777 Closes zfsonlinux/pkg-zfs#166
- Loading branch information
Showing
6 changed files
with
427 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.