]> granicus.if.org Git - zfs/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)
committerTony Hutter <hutter2@llnl.gov>
Mon, 21 Aug 2017 23:46:55 +0000 (16:46 -0700)
commit4810a108e889cf18ee7151d99e63644a2d330d0a
treec4d5a7aee324d1bfbd2b225bdf13749952867105
parentae5b4a05fff84cfb4facab1037bdb725f1b30bc6
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