Skip to content

sharenfs property with IPv6 does not work #14960

Open
@dacianstremtan

Description

@dacianstremtan

System information

Type Version/Name
Distribution Name Rocky Linux
Distribution Version 8.8 (Green Obsidian)
Kernel Version 4.18.0-477.13.1.el8_8.x86_64
Architecture x86_64
OpenZFS Version 2.1.12

Describe the problem you're observing

I cannot set zfs sharenfs to IPv6. There was a pull request in 2021 (#11939), that made it to the master branch, but the code is not making into in the releases.

Describe how to reproduce the problem

zfs set sharenfs='rw=10.0.0.0/24,rw=[fc00:10:10::]/64,sync,no_root_squash,no_wdelay' tank/shares

Instead of creating an export point for IPv6 address I get the following exports:

[stremtan@zfsnas-node1 ~]$ sudo zfs set sharenfs='rw=10.0.0.0/24,rw=[fc00:10:10::]/64,sync,no_root_squash,no_wdelay' tank/shares
[stremtan@zfsnas-node1 ~]$ sudo exportfs
/tank/shares  	10
/tank/shares  	10.0.0.0/24
/tank/shares  	[fc00
/tank/shares  	<world>

Include any warning/errors/backtraces from the system logs

none

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions