]> git.proxmox.com Git - mirror_zfs.git/commit
Additional SYSV init script fixes.
authorTurbo Fredriksson <turbo@bayour.com>
Thu, 11 Jun 2015 21:03:04 +0000 (23:03 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Jun 2015 20:30:03 +0000 (13:30 -0700)
commit036391c980c1e6504352b770eb385806a951b1cb
tree19245821e4f91a3a49bf86f7bde75960ae8b0c93
parent5d6a46036277e472433416dda06a0299c339ae08
Additional SYSV init script fixes.

Use the 'mount' command instead of /proc/mounts to get a list of matching
filesystems.

This because /proc/mounts reports a pool with a space 'rpool 1' as
'rpool\0401'. The space is encoded as 3-digit octal which is legal.
However 'printf "%b"', which we use to filter out other illegal
characters (such as slash, space etc) can't properly interpret this
because it expects 4-digit octal. We get a \ 1 instead of the space
we expected. The correct value should have been 'rpool\00401' (note
the additional leading zero).

So use 'mount', which interprets all backslash-escapes correctly,
instead.

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