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.
Some function improvenments to the SYSV init and initramfs scripts.
* Use check_boolean() where needed in more places. * Make sure that kernel command line options which are booleans is all accepting "yes|on|true|1" as option value. * 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 in ZFS function script. * Create zfs_run_cmd() which records stderr, exit code etc. * 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!). * Upside: Get better control over 'quiet'/'debug' mode output. * Many functions is and should be generic. That is, they shouldn't output any information (that is and can be done elsewhere). Instead they should return true or false depending on status of commands. * Correct and fix the 'log STDERR to file if debugging'. Signed-off-by: Turbo Fredriksson <[email protected]>
- Loading branch information
Showing
3 changed files
with
142 additions
and
117 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.