]> granicus.if.org Git - zfs/commit
Additional SYSV init script fixes (3).
authorTurbo Fredriksson <turbo@bayour.com>
Fri, 19 Jun 2015 14:22:14 +0000 (16:22 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 25 Jun 2015 18:56:47 +0000 (11:56 -0700)
commit16421a1dc837eae4cc0b353e7f6616bc6202c013
tree22711b41ec44d18954d6ca47bf8b2b634ec6edb1
parent216f9d04a651a6b692de9933cc37ee238267a617
Additional SYSV init script fixes (3).

* In read_mtab(), fix problems (!?) in the mounts file. It will record
  'rpool 1' as 'rpool\0401' instead of 'rpool\00401' which seems to be the
  correct (at least as far as 'printf' is concerned). Use this using the
  external 'echo' command (and not the one built in to the shell) because
  the internal one would interpret the backslash code (incorrectly), giving
  us a \ 1 instead.
* Remove reregister_mounts() - no longer needed.
* For Gentoo, the zfs_log_failure_msg() should use eend(), not eerror()
  (which requires an error message, which we don't have).

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3488
Closes #3509
Closes #3514
etc/init.d/zfs-functions.in
etc/init.d/zfs-mount.in