]> git.proxmox.com Git - mirror_zfs.git/commit
Disable mount(8) canonical paths in do_mount()
authorLOLi <loli10K@users.noreply.github.com>
Mon, 21 Aug 2017 16:31:54 +0000 (18:31 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 21 Aug 2017 16:31:54 +0000 (09:31 -0700)
commit9000a9fac950d2e2c9578d760dd775ac1ceaa507
tree7de56a7f652c3e1baa7a505db4d8bd89a411688e
parentf763c3d1df569a8d6b60bcb5e95cf07aa7a189e6
Disable mount(8) canonical paths in do_mount()

By default the mount(8) command, as invoked by 'zfs mount', will try
to resolve any path parameter in its canonical form: this could lead
to mount failures when the cwd contains a symlink having the same name
of the dataset being mounted.

Fix this by explicitly disabling mount(8) path canonicalization.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #1791
Closes #6429
Closes #6437
etc/systemd/system/zfs-mount.service.in
lib/libzfs/libzfs_mount.c