Quote snapshot and mountpoint for .zfs automount
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Oct 2012 20:23:09 +0000 (13:23 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Oct 2012 20:26:18 +0000 (13:26 -0700)
commitc7dfc086297b6e7768e94d1eef3afaa58beeb5ec
tree274dc723f6668a45947e6370e5499161e1368db3
parent658a0140f3d27f04fb789f5a0fe8ea00773a210a
Quote snapshot and mountpoint for .zfs automount

When automounting a snapshot in the .zfs/snapshot directory
make sure to quote both the dataset name and the mount point.
This ensures that if either component contains spaces, which
are allowed, they get handled correctly.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1027
module/zfs/zfs_ctldir.c