Skip to content

Adding --no-canonicalize prevents user mounts #7294

Closed
@behlendorf

Description

@behlendorf

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version 16.04
Linux Kernel Any
Architecture x86_64
ZFS Version zfs-0.7.0-360-g8e5d148
SPL Version spl-0.7.0-30-g3673d03

Describe the problem you're observing

Reposted from #6437 (comment).

PR #6437 appears to prevent user-mode mounting of volumes.

Is it possible that the --no-canonicalize option could be used only when necessary? Or is there another solution to this that doesn't prevent user mounting?

Describe how to reproduce the problem

root@athena:~# zfs allow jules mount testpool/jtest

jules@athena:~$ zfs mount testpool/jtest
mount: only root can use "--no-canonicalize" option
cannot mount 'testpool/jtest': Invalid argument

Include any warning/errors/backtraces from the system logs

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIndicates a good issue for first-time contributors

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions