]> granicus.if.org Git - zfs/commit
Fix zfs-mount-generator for datasets with spaces
authorAntonio Russo <antonio.e.russo@gmail.com>
Tue, 7 May 2019 16:32:23 +0000 (12:32 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 May 2019 16:32:23 +0000 (09:32 -0700)
commit6aff30ad803fd677d873dd5220a37e6e3876aa0d
tree73be73e786e8f3e1fbd2394610457a50ef1f170e
parentbca06413f7db1b04a943c04e7bacbcfa13a6727d
Fix zfs-mount-generator for datasets with spaces

Alternative implementation of @rlaager's original modification
of zfs-mount-generator fix, with @chrisrd's comments. Set
IFS to be only the tab character, matching our `-H` call in
`zfs list`, allowing spaces to appear in dataset names (and
mountpoints).

Also adds comments explaining our rationale.

Reviewed-by: Chris Dunlop <chris@onthe.net.au>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes #8708
Closes #8718
etc/systemd/system-generators/zfs-mount-generator.in