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
"exec 0</dev/null " \
" 1>/dev/null " \
" 2>/dev/null; " \
- "umount -t zfs -n %s%s"
+ "umount -t zfs -n '%s%s'"
static int
__zfsctl_unmount_snapshot(zfs_snapentry_t *sep, int flags)
"exec 0</dev/null " \
" 1>/dev/null " \
" 2>/dev/null; " \
- "mount -t zfs -n %s %s"
+ "mount -t zfs -n '%s' '%s'"
int
zfsctl_mount_snapshot(struct path *path, int flags)